validation of "select"

Results 1 to 2 of 2

Thread: validation of "select"

  1. #1
    Join Date
    Dec 1969

    Default validation of "select"

    looking for java script to require a "selection" from drop down list. the script i have works for ie but not for netscape.

  2. #2
    Join Date
    Dec 1969

    Default Not an ASP question, but...

    &nbsp;<BR>Assuming that you mean you want the user to choose some item in the list *OTHER* than the first one, it&#039s easy:<BR><BR>&#060;FORM ... onSubmit="return (this.DemoSelect.selectedIndex != 0);"&#062;<BR>&#060;SELECT Name="DemoSelect" ... &#062;<BR>...<BR><BR>**********<BR><BR>I would guess that you are using the "value" of the Select field. Nope. Not supported by spec. MSIE is sloppy and allows it, but you shouldn&#039t depend on it. (Even MSIE doesn&#039t do it right when MULTIPLE is allowed in a Select, I believe.)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts