PDA

View Full Version : plz help me in javascript



verak
22 Mar 2010, 06:47 AM
Sir i have a row repeat by while loop php in this row have array of check boxes and second column size of image like 125 x 125 in same row by while loop from database on this check box a java script function is called which should check onlclick if first click size save in a variable and any other oncheck have different size then alert that the size does not match. if we checked on check box first time then it save size in a variable and we again checked an another check box and onclick function check the size if size does not match then show alert if size match then simply checked the check box. it mean that every onclick on check box checks that size is same or not to first checked box.

plz sir send me this function is very needy...

code of html is this below


<tr>
<td align="center">
<input name="checkbox[]" type="checkbox" id="checkbox[]" value="<?php echo $aaa['id']; ?>" onclick="return checkForm(delet);" />


<td align="center"><?php echo $aaa['imgSize'];?><input type="hidden" id="size[]" name="size[]" value="<?php echo $aaa['imgSize'];?>" /></td>

</tr>