Converts a select input to a text field with + and - buttons
<script type='text/javascript' src='path/to/jquery.selectToRange.js'></script>
<link rel='stylesheet' type='text/css' href='path/to/select_to_range.css'>
$('#quantity').selectToRange();
$('input[type="select"]').selectToRange({
before: '#add-to-cart',
timeout: 0
});
after
: position input range after the specified selector or jQuery objectbefore
: position input range before the specified selector or jQuery objecttimeout
: specify timeout in milli-seconds to update the value of select box, default is 600
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request