LyndonOHRC
Programmer
This function fires on the onchange event of a form/input element. For some reason the focus goes to the next element in the DOM.
I'm not sure if the onchange or onblur event is the best way to trigger this validation process. Or why I'm not getting the behavior I expected.
Any help appreciated.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
I'm not sure if the onchange or onblur event is the best way to trigger this validation process. Or why I'm not getting the behavior I expected.
Any help appreciated.
Code:
if (isNaN(RSWinAwardValue) || Number(RSWinAwardValue)<=0) {
alert('Award Amount Must be a Positive Number');
document.getElementById('RSWinAward').focus();
return ;
}
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey