block scientific notation from input type number include [e,+,0,-]
This commit is contained in:
@@ -136,6 +136,10 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('input[type="number"]').on('keydown', function(e) {
|
||||||
|
if (['e', 'E', '+', '-'].includes(e.key)) e.preventDefault();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
Reference in New Issue
Block a user