103
rated 0 times
[
104]
[
1]
/ answers: 1 / hits: 16353
/ 14 Years ago, tue, october 12, 2010, 12:00:00
I need to programmatically check a radio button given its value. The form has an id
and the input type obviously has a name (but no id). The only code I managed to get working so far is:
$('input[name=my_name]:eq(1)').attr('checked', 'checked');
But I'd like to be able to check it by explicitly providing the value.
More From » jquery