JavaScript - Preventing CausesValidation on button Click event if one radio button is ckecked

Asked By Daniel on 08-Mar-13 08:00 AM
I have 2 radio Buttons with IDs rdoYes and rdoNo on my Page,
then what I want is if radio button with id rdoYes is checked then when the user Click on the button it should not causes Validation on my page(has RequeiredFieldvalidator)
This is this code I am using but it is not working,it is still causing validation:

$('#btnContinue').click(function(e) {
if ($('#<%=rdoYes.ClientID %>').attr('checked', 'checked'))
By the way btnContinue is the ID of the button that causesvalidation OnClick event.