I try to check a radio button with jQuery. Here\'s my code:
If property name
does not work don't forget that id
still exists. This answer is for people who wants to target the id
here how you do.
$('input[id=element_id][value=element_value]').prop("checked",true);
Because property name
does not work for me. Make sure you don't surround id
and name
with double/single quotations.
Cheers!