You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Your MASK code is very nice and useful.
Thanks for sharing with us.
I want to specify the minimum and maximum values of the numbers entered in an input field.
Is it possible?
Sample Code
$('#kisi').mask("###.###.###", {reverse: true});
$(function () {
$( "#kisi" ).change(function() {
var max = parseInt($(this).attr('max'));
var min = parseInt($(this).attr('min'));
if ($(this).val() > max)
{
$(this).val(max);
}
else if ($(this).val() < min)
{
$(this).val(min);
}
});
});
Beta Was this translation helpful? Give feedback.
All reactions