robert_gsfame Posted April 29, 2010 Share Posted April 29, 2010 i have my this php code echo "<form name=form1>"; while($array=mysql_fetch_array($connection)){ $id=$array['id']; $name=$array['name']; echo "<td id=$id><input type=checkbox value=$id>$name</td>";} echo "</form>"; n also i provide it with button so assume button click then function clicking(){ var size=document.form1.elements.length; for(var i=0;i<size;i++){ if(document.form1.elements.type=="checkbox"){ if(document.form1.elements.checked){ document.getElementById(document.form1.elements.value).style.display="none"; }}}} i have problem here, when the button click <td> with chosen id wasn't disappear although i've set style.display="none" wish that someone could help and specify the error part Thx in advance Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted April 29, 2010 Author Share Posted April 29, 2010 i think the problem with this part, but i dont know why document.getElementById(document.form3.elements.name).style.display="none"; 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.