I have a function to handle validation on my single click radbutton, how do I toggle the state of the single click in JS, currently the button remains with it's SingleClickText if the script below doesn't validate
<script type="text/javascript"> function DoSubscriptionValidation(button, args) { var isValid = Page_ClientValidate('Subscription'); if (isValid) { $find("<%= SubscriptionErrorNotification.ClientID %>").hide(); } else { $find("<%= SubscriptionErrorNotification.ClientID %>").show(); } button.set_autoPostBack(isValid); } </script>