robert_gsfame Posted April 11, 2010 Share Posted April 11, 2010 i have this html code <input type=checkbox name=choose[] id=check1 onselect=check()>check1 <div id=show></div> javascript function check(){ document.getElementById('show').value="aaa"; } value "aaa" didnt shown up even if i have checked the checkbox Quote Link to comment Share on other sites More sharing options...
void Posted April 11, 2010 Share Posted April 11, 2010 how do you want it to show up? it's value is not equal to it's content. what you are after is probably document.getElementById('show').innerHTML = 'aaa'; Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 11, 2010 Author Share Posted April 11, 2010 oopsss..sorry...i forgot that i've to use inner.HTML thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.