Jump to content

sungpeng

Members
  • Posts

    290
  • Joined

  • Last visited

Everything posted by sungpeng

  1. function chk() { var name=document.getElementById('checking[]').value; var dataString='checking2='+ name; $.ajax({ type:"post", url:"send-checking.php", while($doing=mysql_fetch_array($sqlq)){ <input type='checkbox' id='checking[]' value='<?php echo $doing["pid"]; ?>' onchange='chk()' /> It always send the first row value from $doing["pid"]; I need it to send second, third or forth row if i click like the forth row of the check box. Can someone help ?
×
×
  • 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.