I want to restrict user input to positive numbers in an html form.
I know you can set min=\"0\", however it is possible to bypass this by manually entering a negati
On html put onKeypress event listener
write the validate function like this:
in case of angularjs pass $event in place of event, i have tested this in angularjs and in javascript
$event
event