MINI
C:
/
SiakApp
/
web
/
js
/
Upload File:
files >> C:/SiakApp/web/js/ucase.js
function ucase(obj) { obj.value = obj.value.toUpperCase(); } function numbersonly(e, decimal) { var key; var keychar; if (window.event) { key = window.event.keyCode; } else if (e) { key = e.which; } else { return true; } keychar = String.fromCharCode(key); if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) { return true; } else if ((("0123456789").indexOf(keychar) > -1)) { return true; } else if (decimal && (keychar == ".")) { return true; } else return false; } function hurufOnly(x){ var theEvent = x || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var patterns = /[\d!@#$%^&*()_+\=\[\]{};:"\\|,<>\/?]/; if(patterns.test(key)){ theEvent.returnValue = false; } } function noSpecialChar(x){ var theEvent = x || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var patterns = /[-!@#$%^&*()_+\=\[\]{};:'"\\|,<>\/?]/; if(patterns.test(key)){ theEvent.returnValue = false; } }
Copyright ©2021 || Defacer Indonesia