mardi 14 mai 2019

Disable checkbox on radio button click

I have 2 radio buttons and would like to disable checkboxes in an array if radio button is clicked. Here is some code from a previous post in .net. I use asp classic and would appreciate assistance in altering this code or code that would best accomplish my goal. Thank you.

 $(document).ready(function () {

     $('#<%= rbRadioButton.ClientID %> input').change(function () {
         // The one that fires the event is always the
         // checked one; you don't need to test for this
         alert($(this).val());
     });
 });




Aucun commentaire:

Enregistrer un commentaire