Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery option not disabled

const opt = $('#select option:not(:disabled)'); // array with all options not disabled
const first = $($('#select option:not(:disabled)')[0]); // first option not disabled
Comment

not disabled jquery

$(document).ready(function(){
  $(':checkbox.selectall').on('click', function(){
    $(':checkbox[class='+ $(this).data('checkbox-name') + ']:not(:disabled)').prop("checked", $(this).prop("checked"));
    $(':checkbox[class='+ $(this).data('checkbox-name') + ']:not(:disabled)').trigger("change");
  });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: url query example 
Javascript :: js reverse int in descending order 
Javascript :: javascript combobox 
Javascript :: javascript ternary operator 
Javascript :: check nbt on item minecraft 
Javascript :: npm font awesome 5 angular 7 
Javascript :: cypress store cookies 
Javascript :: react usecontext 
Javascript :: javascript cheat sheet pdf 
Javascript :: how to validate email in node js 
Javascript :: momentjs display timezone 
Javascript :: javascript return multiple values from a function 
Javascript :: eslint disable tag 
Javascript :: export data in json format in javascript 
Javascript :: javascript how to get subarray 
Javascript :: check for string anagram javascript 
Javascript :: axios error message 
Javascript :: js countdown 
Javascript :: sequelize get where 
Javascript :: rock paper scissors js 
Javascript :: brwoser prompt before reload 
Javascript :: change js 
Javascript :: how to crash with js 
Javascript :: how to remove sub array null index in javascript 
Javascript :: js push in object 
Javascript :: sequelize update sql 
Javascript :: array javascript django 
Javascript :: check if object is not defined js 
Javascript :: Svg as a component react 
Javascript :: new blob javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =