Results 1 to 25 of 33
Jul 6, 2013, 13:34 #21
- Join Date
- Jun 2009
- 0 Post(s)
- 0 Thread(s)
I know.... I just wanted the challenge of doing everything with plain JS... but this code is great as there are things here about the use of innerHTML I didn't k now...
1) they only work in this example if you do document.querySelector('#content').innerHTML += ', '; and not if you do
$('#content').innerHTML += ', ';
(????..... I'm still loading the core jQuery...)
2) had no idea you could do innerHTML += (as opposed to just innerHTML = )
of course this is very useful....
3) had no idea you have to enclose value in '()' ( but only if you're printing a strings and vars..... if you're printing just a string this works fine....
.innerHTML += ', ';
just learned three new things about innerHTML.... ;~))
thanks again, people... you folks are the best...