block scientific notation from input type number include [e,+,0,-]

This commit is contained in:
Hafifie PKB
2026-03-10 10:54:06 +08:00
parent fbec4b82fd
commit 0a19fa3d4b
@@ -136,6 +136,10 @@ $(document).ready(function() {
}
});
});
$('input[type="number"]').on('keydown', function(e) {
if (['e', 'E', '+', '-'].includes(e.key)) e.preventDefault();
});
});
</script>
@endsection