How to Uncheck A radio button
Posted
by user281867
on Stack Overflow
See other posts from Stack Overflow
or by user281867
Published on 2010-04-06T23:30:53Z
Indexed on
2010/04/07
0:23 UTC
Read the original article
Hit count: 407
Hi,
I have two forms, one with a radio button that users must select to edit. [form name="A"]
After "BookItem" is selected from form (A) I call the $("#EditFormWrapper").load("callEditData.cfm? ID="+ID); function to load the second form (B)
[form id="editForm" name="B"]
[input type="image" src="images/submit-btn.gif" id="addBTN" name="addBTN" class="buttons" alt="SubmitRrequest" /] [input type="image" src="images/cancel-btn.gif" id="editBTNcancel" name="editBTNcancel" class="buttons" alt="Cancel Request" /] [/form] I want to uncheck the radio button on form (A) when user click on cancel button (editBTNcancel) in form(B).
Here s my script:
$("#editBTNcancel").live("click", function(event){
event.preventDefault();
$("#EditFormWrapper").slideUp("fast").empty();
//$('.TOR2Hours').removeAttr('checked');
$('.TOR2Hours').attr('checked', false);
});
I hope I clearly state my problem, any suggestion would be greatly appreciated!
© Stack Overflow or respective owner