Feb 13, 2001 #1 dziem Programmer Feb 15, 2001 1 ZA Yo Does anybody know how to change the text (using javascript) in a div tag ? ie <DIV style="HEIGHT: 20px...etc etc>howto change this text</DIV> Any suggestions will be appreciated ???
Yo Does anybody know how to change the text (using javascript) in a div tag ? ie <DIV style="HEIGHT: 20px...etc etc>howto change this text</DIV> Any suggestions will be appreciated ???
Feb 13, 2001 #2 luciddream Programmer Nov 8, 2000 712 US div_id.innerHTML = "this text will now be in the div"; adam@aauser.com Upvote 0 Downvote
Feb 13, 2001 #3 jaredn Programmer Sep 1, 1999 1,506 US or if you are just supporting IE, and not placing HTML inside, you should use: div_id.innerText as it multiple times faster jared@aauser.com - http://webfx.eae.net Upvote 0 Downvote
or if you are just supporting IE, and not placing HTML inside, you should use: div_id.innerText as it multiple times faster jared@aauser.com - http://webfx.eae.net