first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
$('body').on('keydown', 'input, select, textarea', function(e) {
|
||||
if (e.which === 13) {
|
||||
var self = $(this), form = self.parents('form:eq(0)'), focusable, next;
|
||||
focusable = form.find('input, select, textarea, button, a').filter(':visible:enabled');
|
||||
next = focusable.eq(focusable.index(this)+1);
|
||||
if (next.length) {
|
||||
next.focus();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
function angka(e) {
|
||||
if (!/^[0-9\.,()-/\a-zA-Z \b]+$/.test(e.value)) {
|
||||
e.value = e.value.substring(0,e.value.length-1);
|
||||
}
|
||||
}
|
||||
|
||||
$("input, select, textarea").keyup(function(){
|
||||
angka(this);
|
||||
});
|
||||
Reference in New Issue
Block a user