biasa nya ini di gunakan buat input no npwp
berikut codingan nya .
<html>
<head>
<script type="application/javascript">
function isnumeric(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
</head>
<body>
<input type="text" name="amount" value="" onkeypress="return isnumeric(event)" />
</body>
</html>
Perhatian: Yuk Baca Artikel bagus di Nurul Musthofa
No comments:
Post a comment