By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Form code trap problem

P: n/a
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
Oct 5 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Garry Jones" <ga*********@morack.sewrote:
>Using script
[...]
>Any help appreciated.
news:comp.lang.javascript

--
Spartanicus
Oct 5 '06 #2

P: n/a
Garry Jones <ga*********@morack.sewrote:
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, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"I used to have a handle on life, but it broke."
Oct 5 '06 #3

P: n/a
Garry Jones wrote:
>
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)
Oct 5 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.