Reputation: 117
I have this code:
<input type="checkbox" name="checkbox" id="radio1" class="radio" / value="1" />
I tried using jQuery:
$('#radio1').value=1;
Is this correct?
Upvotes: 0
Views: 47
Reputation: 970
Just to show OP the correct HTML:
<input type="checkbox" name="checkbox" id="radio1" class="radio" value="1" />
JQuery:
$('#radio1').val(1);
Upvotes: 1