jquery select2 multiple select all
$("#checkbox").click(function(){
if($("#checkbox").is(':checked') ){
$("select > option").prop("selected","selected");
}else{
$("select > option").removeAttr("selected");
}
});
Also in JavaScript:
- Changes not staged for commit: modified: ../package.json
- firebase angular send notification to by tocken
- javascript random number between 0 and 10
- javascript recursive function for fibonacci series
- javascript transfer to another page
- how to run js before submit html
- timeline material ui react native
- javascript object notation
- async await anonymous function
- jquery cheat sheet
- jquery remove elemtns
- nodejs hashing
- javascript format currency
- input type date doesn't work in ie
- mute video javascript
- random js
- json example array
- javascript json stringify indented
- how to get selected list item value in javascript
- html button click only once
- create a slider
- js switch
- append new element for each value in array d3.js
- underscore js join