Transform select element into an input step.
Include jquery-select-step.css
from folder dist
.
<link rel="stylesheet" href="./dist/jquery-select-step.css">
Include jquery-select-step.js
from folder dist
.
<script src="./dist/jquery-select-step.js"></script>
Call the plugin on your script.
jQuery(".select-element").selectStep({
incrementLabel: "+",
decrementLabel: "-",
onChange: function(value) {
console.log(value, "value");
}
});