Skip to content

Instantly share code, notes, and snippets.

View dwarfmondo's full-sized avatar

Matt Vasquez dwarfmondo

View GitHub Profile
// Requires the following attributes be set: step, min, and max on the input
input_number: function() {
if (!$('input[type=number]').length) {
return;
}
function getStep(el) {
return parseInt($(el).attr('step')) || 1;
}