Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] required entry field
- From: Michael_Dougherty at PBP.com (Michael Dougherty)
- Subject: [Javascript] required entry field
- Date: Wed Mar 26 15:26:12 2003
function isValid( checkValue ) {
return (checkValue!='')
}
<input type='text' name='NeverBlank' value='' onBlur='return
isValid(this.value)' />
The idea is to prevent the user from exiting this field while it's blank.
(OK, so this would be a user-hostile experience - it's just an example)
What i'm seeing is that when the user hits TAB, the focus moves to the
next field - regardless of the return value from isValid()
Any thoughts?
- Follow-Ups:
- [Javascript] required entry field
- From: Chris Tifer
- [Javascript] required entry field
- Prev by Date: [Javascript] Time & day-based redirects?
- Next by Date: [Javascript] Time & day-based redirects?
- Previous by thread: [Javascript] open same window ?
- Next by thread: [Javascript] required entry field
- Index(es):