Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

clear the input when change the radio button

  $('input[name="am_payment"]').on('click', function() {
   if ($(this).val() === '') {
      $('#theamount').val('').prop("removed", true).focus();
   }
   else {
      $('#theamount').val('').prop("disabled", false);
   }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #input #change #radio #button
ADD COMMENT
Topic
Name
2+9 =