Answers for "jquery all input checked but not disabled"

2

jquery disable all input form

//In older versions you could use attr. 
//As of jQuery 1.6 you should use prop instead:
$("#target :input").prop("disabled", true);

//To disable all form elements inside 'target'. See :input:
//Matches all input, textarea, select and button elements.

//If you only want the <input> elements:
$("#target input").prop("disabled", true);
Posted by: Guest on August-02-2021
0

jquery select all checkboxes except disabled

//html
  <input type="checkbox" id="checkboxAll" title="Select All" />
 //jquery
     $('#checkboxAll').change(function () {
            $('input:checkbox').filter(function () {
                return !this.disabled
            }).prop('checked', this.checked);
     });
Posted by: Guest on January-05-2022

Code answers related to "jquery all input checked but not disabled"

Code answers related to "Javascript"

Browse Popular Code Answers by Language