Code:
for ($i = 1 ; $i < $count; $i++){
for($k = 1; $k <= 10; $k++){
if($tocheck == $k){
$chk = "checked";
}
else
{
$chk = "";
}
$myresult .= "<input class='star' type='radio' name='rating".$i."' id='rating".$i."".$k."' value='". $k ."' $disabled $chk title='". $k." out of 10 '/> ";
}
$myresult .= "</span>";
$myresult .= "<input type=\"button\" value=\"Rate It\" onclick=\"javascript: $('.hide".$i."').show('show');\" >";
}
when i click on the Rate it button. the value of all the radiobuttons should become 0 . i.e the $chk must become NULL . how can i achieve this using javascript/ajax/jquery method ?
Comment