Annoying the user: Please enter numbers only(nirandas.com)

submitted by redcapredcap(420) 3 years, 4 months ago

Everyone of us sometime or other had to restrict the user from entering non-numeric values in to a text field. We normally validate user input when user presses the submit button or when the user leave the input field and display the error message in a span or using alert() javascript function. However what will happen if we validate user input as the user is typing in the field and also use a alert box to display error message instead of showing it in a span?

add a comment |category: |Views: 23

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story