Jump to content

td display problem


robert_gsfame

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.