Moobs
Regular Member
- Jan 30, 2015
- 270
- 23
I'm trying to make it so when a certain element is clicked this jquery script selects a specific radio. (should function the same as clicking the actual button)
#id is the id of the input just to be clear. I changed it to #id for this example.
#id is the id of the input just to be clear. I changed it to #id for this example.
Code:
<input type="radio" class="input-radio " value="cow" name="moo" id="id" />
$( ".selectionWrapper" ).click(function() {
$("#id").prop('checked', true);
});