[jQuery] Probably just javascript?

[jQuery] Probably just javascript?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Probably just javascript?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Would *LIKE* to use jQuery if I can.. (more experience with jquery the better)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The actual *value* of my More Carriers.. option in a dropdown is:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><option value='/SBDX/Scripts/Carrier_Request_Form.asp?channel=" & varChannel & "&carrier=" & varCarrier &lookup=" & formName & "&item=" & eapid & "' class='newwin'>More Carriers..</option></FONT></P>
<P><FONT SIZE=2 FACE="Arial">I cannot test the *value* attribute for More Carriers.. but how could I test for the value More Carriers.. between the option tags?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Is it possible in Jquery or plain javascript?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I just use that More Carriers.. in an OnSelect script... but I don't want them to use the back button and SUBMIT that select option. (bad terrible things result).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">If THAT is NOT possible, I COULD test for the *value* and if it starts with a slash / then throw an error/alert.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><script type="text/javascript"></FONT>
<BR><FONT SIZE=2 FACE="Arial">function formVal(frm) {</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var frm = document.agencyform4;</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v1 = numOnly(frm.nbc1p);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v2 = numOnly(frm.nbc1t);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v3 = numOnly(frm.nbc2p);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v4 = numOnly(frm.nbc2t);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v5 = numOnly(frm.nbc3p);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    var v6 = numOnly(frm.nbc3t);</FONT>
<BR><FONT SIZE=2 FACE="Arial">    if (v1 === null || v2 === null || v3 === null || v4 === null || v5 === null || v6 === null) {</FONT>
<BR><FONT SIZE=2 FACE="Arial">    return false; // error message already displayed</FONT>
<BR><FONT SIZE=2 FACE="Arial">    }</FONT>
<BR>        <FONT SIZE=2 FACE="Arial">if (frm.nbcarrier2.options[14].selected = true)</FONT>
<BR>                <FONT SIZE=2 FACE="Arial">alert("You cannot save the carrier name More Carriers!");</FONT>
<BR>        <FONT SIZE=2 FACE="Arial">return false;</FONT>
<BR><FONT SIZE=2 FACE="Arial">    return true;</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
<BR><FONT SIZE=2 FACE="Arial"></script></FONT>
</P>
<FONT SIZE=3><BR>
<BR>
*************************************************************************<BR>
This communication, including attachments, is<BR>
for the exclusive use of addressee and may contain proprietary,<BR>
confidential and/or privileged information. If you are not the intended<BR>
recipient, any use, copying, disclosure, dissemination or distribution is<BR>
strictly prohibited. If you are not the intended recipient, please notify<BR>
the sender immediately by return e-mail, delete this communication and<BR>
destroy all copies.<BR>
*************************************************************************<BR>
</FONT>
</BODY>
</HTML>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/