
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
msfmultiselect
Advanced tools
MSFmultiSelect (multiselect) is a pure JavaScript user-friendly multiselect library, don't need jQuery. It's very easy to use for developers and fast.
MSFmultiSelect (multiselect) is a pure JavaScript user-friendly multiselect library, don't need jQuery. It's very easy to use for developers and fast.
Use npm to install the latest version.
npm i msfmultiselect
Import MSFmultiSelect and its stylesheet.
import MSFmultiSelect from "msfmultiselect";
import 'msfmultiselect/msfmultiselect.min.css';
Alternatively, you can simply embed it in your HTML file.
<script src="https://cdn.jsdelivr.net/gh/minisuperfiles/MSFmultiSelect/msfmultiselect.min.js"></script>
<link href="https://cdn.jsdelivr.net/gh/minisuperfiles/MSFmultiSelect/msfmultiselect.min.css" rel="stylesheet"/>
Add references to MSFmultiSelect’s JavaScript and Stylesheet.
<script src="msfmultiselect.js"></script>
<link rel="stylesheet" href="msfmultiselect.css"/>
Select box container element.
<div id="myselect">
<select id="multiselect" name="languages[]" multiple="multiple">
<option value="1" selected>HTML</option>
<option value="2" selected>CSS</option>
<option value="3">MySql</option>
<option value="4">XML</option>
<option value="5">JSON</option>
<option value="6">YAML</option>
<option value="7">MongoDB</option>
<option value="8">SQLite</option>
</select>
</div>
JavaScript code
var select = new MSFmultiSelect(
document.querySelector('#multiselect'),
{
selectAll: true,
searchBox: true,
onChange:function(checked, value, instance) {
console.log(checked, value, instance);
}
}
);
new MSFmultiSelect(element)
new MSFmultiSelect(element, settings)
element = document.getElementById('multiselect')
settings = {
width: 350,
height: 40,
className: 'myclass',
onChange: function(checked, value, instance) {
console.log(checked, value, instance);
},
selectAll: true,
searchBox: true,
appendTo: '#myselect',
readOnly: true,
afterSelectAll: function(checked, values, instance) {
console.log(checked, values, instance);
},
autoHide: false
}
Give DOM select element, this element posted in your backend.
Give the object of settings your multiselect.
MSFmultiSelect.setValue(sellectedValues, changeTrigger)select.setValue(['4','8']); //give select option values in arrayMSFmultiSelect.removeValue(removeSellectedValues, changeTrigger)select.removeValue(['4','8']); //give select option values in arrayMSFmultiSelect.getData() console.log(select.getData());MSFmultiSelect.selectAll(ctrlSwitch) select.selectAll(true); select.selectAll(false);MSFmultiSelect.loadSource(options)var options = [
{caption:'optiontext1', value:'optionvalue1', selected:true},
{caption:'optiontext2', value:'optionvalue2', selected:false}
];
MSFmultiSelect.getSource() console.log(select.getSource());MSFmultiSelect.reload()select.reload();Learn more about in minisuperfiles.blogspot.com
FAQs
MSFmultiSelect (multiselect) is a pure JavaScript user-friendly multiselect library, don't need jQuery. It's very easy to use for developers and fast.
We found that msfmultiselect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.