Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 5th, 2006, 02:15 PM
Garry Jones
Guest
 
Posts: n/a
Default Form code trap problem

I want to ensure the users chooses an item from a drop down list. The pre
selected value is "Not Chosen"

Using script I cloned this from other working code, but it is flawed
somewhere.

function checkform ( form )
{
if (form.ctsz.value == "Not Chosen") {
alert( "Choose Size or choose opt out" );
form.ctsz.focus();
return false ;
}
return true ;
}

Any help appreciated.

Garry Jones
Sweden


  #2  
Old October 5th, 2006, 02:35 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: Form code trap problem

"Garry Jones" <garry.jones@morack.sewrote:
Quote:
>Using script
[...]
Quote:
>Any help appreciated.
news:comp.lang.javascript

--
Spartanicus
  #3  
Old October 5th, 2006, 04:45 PM
Darin McGrew
Guest
 
Posts: n/a
Default Re: Form code trap problem

Garry Jones <garry.jones@morack.sewrote:
Quote:
I want to ensure the users chooses an item from a drop down list.
See http://www.htmlhelp.com/faq/html/for...equired-fields
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

"I used to have a handle on life, but it broke."
  #4  
Old October 5th, 2006, 06:05 PM
Jim Moe
Guest
 
Posts: n/a
Default Re: Form code trap problem

Garry Jones wrote:
Quote:
>
Using script I cloned this from other working code, but it is flawed
somewhere.
>
What does "flawed" mean?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles