Use JavaScript debugging to identify the reason your code is not working! Utilize the browser console for troubleshooting.
Additionally, incorporate jQuery to attach event listeners instead of relying on inline JavaScript.
$('input').on('input', function(){
console.log(this.value);
})// Check the input value
$('#nominal').on('input',function(){
if (typeof terbilang === 'function')
terbilang();
debugger;
})
$('#terbilang').on('input',function(){
if (typeof terbilang === 'function')
terbilang();
})
$('[name="rekTujuan"]').on('input',function(){
if (typeof validAngka === 'function')
validAngka(this);
})
$('[name="bankTujuan"]').on('input',function(){
this.value = this.value.toUpperCase();
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<form action="do-add-cek.php" id="myForm" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Nominal</label>
<input type="text" name="nominal" class="form-control" id="nominal"/>
</div>
<div class="form-group">
<label>Terbilang</label>
<input type="text" name="terbilang" class="form-control" id="terbilang" />
</div>
<div class="form-group">
<label>Rekening Tujuan</label>
<input type="text" name="rekTujuan" class="form-control"/>
</div>
<div class="form-group">
<label>Bank Tujuan</label>
<input type="text" name="bankTujuan" class="form-control" />
</div>
<button name="save" type="submit" class="btn btn-default">Save</button>
<button name="button_reset" type="reset" class="btn btn-default">Reset</button>
</form>