How to find checkbox values from Dynamically generated Divs in php using javascript?
Here is my code,
echo "<input type='text' name='chkID' id='chkID'>
<div id='mainDiv'>";
while($rowset = mysql_fetch_array($result))
{
echo "<div style='float:left; width=10px; border:solid 1px;'>
<input type='checkbox' value =".$rowset[0].">".$rowset[0]."</div>
<div style='float:left; width=200px; border:solid 1px;'>".$rowset[1].''.$rowset[2]."
</div></br></br>";
}
echo '</div>';
I want to display the values of checkboxes selected which would be like (1,2,3) in the chkID
textbox... I want it to be done using javascript...