I saw on this thread how to ensure that only numbers can be entered for text entry:
How to set a field to number only?I specifically used this solution to make it so respondents can only enter integers between 0 and 9:
jQuery("#"+this.questionId+" .InputText").attr({'type':'number','min':'0', 'max':'9'});
However, I've noticed that a minus sign can still be entered (e.g., "- 5"). Is there some way to prevent this possibility?
Best answer by rondev
View original