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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.