473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

validation on a textfield value

I want to do validation on a textfield value key in by user, but I do not
have idea on what method I can use. Is it possible to do it on 'onblur'
event?

Please give some ideas or useful links about this.

Thanks.

Mar 2 '06 #1
2 1418
juicy said the following on 3/1/2006 8:58 PM:
I want to do validation on a textfield value key in by user, but I do not
have idea on what method I can use. Is it possible to do it on 'onblur'
event?
Don't use onblur, use the onchange event handler.
Please give some ideas or useful links about this.


http://www.JavascriptToolbox.com/bestpractices/
http://jibbering.com/faq
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '06 #2
JRS: In article <a1******************************@localhost.talkab outpr
ogramming.com>, dated Wed, 1 Mar 2006 20:58:39 remote, seen in
news:comp.lang.javascript, juicy <ju*******@nospam.yahoo.com> posted :
I want to do validation on a textfield value key in by user, but I do not
have idea on what method I can use. Is it possible to do it on 'onblur'
event?
Yes; but often unwise.
Please give some ideas or useful links about this.


<URL:http://www.merlyn.demon.co.uk/js-valid.htm> ?

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Mar 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Steve Benson | last post by:
Our regular programmer moved on. I'm almost clueless in Javascript/ASP and got the job of adapting existing code. In the page below, everything works until I added the function checkIt() to...
2
by: Soul | last post by:
Hi, I have .aspx page code in C#, which contain a sample registration form. There are help Button controls beside all fields, when user click on the help button, there will be an explanation...
5
by: jdserran | last post by:
i need help, this is my code for my form: print header; print start_html('Assignment 2'), start_form(-action=>'lwpmsample.pl',-method=>'POST'), "Option: ",...
1
by: runway27 | last post by:
i have a registration page where a user fills up a form such as username, first name, phone number etc. i need to do a validation for the following fields. any help will be greatly appreciated. ...
3
by: sanju | last post by:
Dear All, i have 10 textboxes on a form, I require the following validation 1) if i fill the textbox in between(say 5th), then all textboxes before that should be mandatory,ie...
2
by: sukatoa | last post by:
I am a newbie on JavaScript.... I would like to know about what's wrong in my code below: <html> <head> <title>Text Example</title> </head> <body>
1
by: lijiunni | last post by:
how will i validate textfield in jsp using javascript..........and also i have to set focus back to textfield if the validation result is wrong......i need an example coding
4
by: pureadrenaline | last post by:
Hey Guys, Please could anyone help me out with the following form I need to create a validation on the email field only if the user checked the radio button named Email. Thanks in advance. ...
2
by: MRamaLakshmi | last post by:
Hi, Do any body have validation script for a textfield which is a percentage field where i should be able to enter values between 0.0 to 100.0 if user tries to enter any other value it should...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.