PranasLu's Blog

2010-04-13

JavaScript textbox onkeypress, onkeyup, onblur number validation

Filed under: Programming — Tags: , — pranaslu @ 12:42

Šaltinis: http://www.mredkj.com/tutorials/validate2.html

<input type="text"
 onblur="extractNumber(this,2,true);"
 onkeyup="extractNumber(this,2,true);"
 onkeypress="return blockNonNumbers(this, event, true, true);" />

Download script: validate2.js

2 Comments »

  1. greetings
    i’m so pleased that i saw this article. that comment was so nice. thanks again i signed up to this site.
    are you going to write similar posts?

    Comment by Gewinne — 2010-05-17 @ 01:44

    • I’m posting here everything I find useful in my practice. I’m glad, that someone found this blog useful too :)

      Comment by pranaslu — 2010-05-17 @ 08:41


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: