[jQuery] $('#someDiv').html(argument);
I know this has been asked before, and I've looked over each of those
threads but can't seem to get a solid answer. So here goes:
I have this line of code which works as is. It accepts a string and puts
that string as the innerHTML of a div.
function changeMe(coords) {
document.getElementById("playerCoords").innerHTML = name;
}
Based on reading the discuss forum, I've tried updating that line with these
lines, none of which work:
$('#playerCoords').html(coords);
// returns the error "$("#playerCoords") has no properties
and
$('#playerCoords').get(0).innerHTML = coords;
// returns the same error as above.
Am I doing something wrong? I've tested this in both IE and FF for the PC
and both do the same thing.
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/