Closed GoogleCodeExporter closed 9 years ago
jQuery do the same, so I may be wrong...
Original comment by nicolas....@gmail.com
on 5 Nov 2008 at 5:41
Have replace it by in my script :
if (in_array($champs_element->attr('type'),array('checkbox','radio')))
{
foreach ($champs_element as $champ_element)
{
if ($champ_element->val()==$valeur)
$champ_element->attr('checked','checked');
}
}
Original comment by nicolas....@gmail.com
on 5 Nov 2008 at 5:45
Use array to check/uncheck checkboxes/radioboxes. String values changes 'value'
attribute.
Eg: pq(':radio:first').val(array(5));
Original comment by tobiasz....@gmail.com
on 5 Nov 2008 at 6:10
Original issue reported on code.google.com by
nicolas....@gmail.com
on 5 Nov 2008 at 5:28