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 :: how to set empty date in javascript 
Javascript :: array shuffle 
Javascript :: react native navigation change header title 
Javascript :: get element by xpath 
Javascript :: javascript move element to coordinates 
Javascript :: js check if undefined 
Javascript :: react webpack.config.js example 
Javascript :: generate a random number between min and max 
Javascript :: puppeteer headless 
Javascript :: jquery selector parent on hover 
Javascript :: storing an image file into buffer field with mongoose 
Javascript :: canvas rectangle rounded corners 
Javascript :: react native safeareaview 
Javascript :: recursion in javascript 
Javascript :: run a local instance of Kibana on docker and connect to elasticsearch 
Javascript :: Find the stray number 
Javascript :: javascript vector 
Javascript :: javascript range of integers 
Javascript :: img src to file javascript 
Javascript :: display date in javascript 
Javascript :: cors in node js 
Javascript :: disable button based on condition angular 
Javascript :: node -r dotenv/config 
Javascript :: redirect after print javascript 
Javascript :: js new array from new set 
Javascript :: remove table line button html using javascript 
Javascript :: fuse.js 
Javascript :: use location hook 
Javascript :: tochararray in javascript 
Javascript :: javascript max number 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =