defencedog
01-20-2012, 04:05 AM
@ http://jsfiddle.net/defencedog/cu5VJ/
I am having problem in understanding the operation of js with regards to this line
$('.' + x[i].id).text(x[i].innerHTML);
or
$('.' + x[i].id).html(x[i].innerHTML);
I want to understand why I ain't able to produce desired results while using this instead
$('.' + x[i].id).innerHTML(x[i].innerHTML);
I am having problem in understanding the operation of js with regards to this line
$('.' + x[i].id).text(x[i].innerHTML);
or
$('.' + x[i].id).html(x[i].innerHTML);
I want to understand why I ain't able to produce desired results while using this instead
$('.' + x[i].id).innerHTML(x[i].innerHTML);