Im using the bog standard form validation plugin. I have two radio buttons 'yes' 'no' and what im trying to do is set validation if a radio 'yes' is checked... Which works, but i need to then turn off validation if the 'no' radio is selected. Im trying the following...
<script type="text/javascript">
$(document).ready(function()
{
$('.cbyes').click(function()
{
$('.hiddenDiv').show('slow');
$("#regForm").validate();
});
$('.cbno').click(function() {
$('.hiddenDiv').hide('slow');
$('#regForm')[0].reset();
});
});
</script>