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 Link to comment https://forums.phpfreaks.com/topic/200109-td-display-problem/ 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"; Link to comment https://forums.phpfreaks.com/topic/200109-td-display-problem/#findComment-1050300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.