
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
js-custom-select
Advanced tools
This custom select works on all browsers (ie10+) and mobile devices. It was written on pure js, uses es6 standards. It supports dynamic loading, and internal search.
You can review the example here: - Demo. This custom select works on all browsers (ie10+) and mobile devices. It was written on pure js, uses es6 standards. It supports dynamic loading, and internal search.
npm install js-custom-select --save
or download from git
git clone https://bitbucket.org/flexi-team/js-custom-select.git
##To use all capabilities of custom-select, you need include js-custom-scroll
npm install js-custom-scroll --save
or download from git
git clone https://bitbucket.org/flexi-team/js-custom-scroll.git
Include js-custom-select.css in the head tag your HTML document
<link rel="stylesheet" href="node_modules/dist/js-custom-select.css"/>
Include js-custom-select.min.js in the end of your HTML document
<script async src="node_modules/dist/js-custom-select.min.js"></script>
<script type="text/javascript">
var i = 0;
var select3 = new jsCustomSelect(document.getElementById('test3'), {
search: true,
//For dynamic loading you just need to activate js-custom-scroll, and configure `at_Fn` function
scroll: {
at: 80,
at_Fn: function (scrollbar, el) {
i++;
var _select = select3.getSelect();
for (var k = 0; k < 15; k++) {
var _opt = document.createElement('option');
var data = Math.random();
_opt.value = data;
_opt.innerHTML = data;
_select.appendChild(_opt);
}
select3.update();
return i < 5;
}
}
});
</script>
<script type="text/javascript">
$('#test').jsCustomSelect({});
</script>
custom-select-block.false.No results match.36px.Js-Custom-Select exposes a few functions that can be useful for script control of your the custom select.
getSelect() - Get the element select, which was converted into a custom select.selt() - Get the custom select.getSelected() -Removes the selected element.update() - Forcibly rebuilds the custom select.kill() - Completely removes the custom select.Copyright (c) 2017 Aleksejj Shmyrko Licensed under the The MIT License (MIT).
FAQs
This custom select works on all browsers (ie10+) and mobile devices. It was written on pure js, uses es6 standards. It supports dynamic loading, and internal search.
We found that js-custom-select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.