Hi Loggar,
I tried and I am attaching the snapshot of the code. Please look into it.
<form>
<row>
<panel>
<html>
<script>
$(document).ready(function() {
$('#numbers_only').on('keyup', function() {
if (/^\d+$/.test($(this).val())) {
// Contain numbers only (do something if contains only numbers)
} else {
//do something if contains nonumeric
alert('nonnumbers')
}
})
});
</script>
<input type="text" token="numbers" id="numbers_only">
<label>Numbers only</label>
</input>
</html>
</panel>
</row>
</form>
... View more