Jump to content


Photo

Check drop down form


  • Please log in to reply
2 replies to this topic

#1 veroaero

veroaero
  • New Members
  • Pip
  • Newbie
  • 8 posts
  • LocationLos Angeles

Posted 28 May 2006 - 11:38 AM

Hi!

I need some help for a smart way of checking that the drop down form was used and a value was chosen. I know that I can check this with $_POST variables afterwards but the question is, can I do it before the actual Submit button is hit?

Something like this: The submit button is not visible until the dropdown form has been used?

Or is this a stupid thing to do?


#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 28 May 2006 - 01:21 PM

You need javscript for that.

on your <select ... you should add the onChange="" attribute and point it to a suitable js function to do the checking.

Google for js scripts there will be plenty for this.
follow me on twitter @PHPsycho

#3 veroaero

veroaero
  • New Members
  • Pip
  • Newbie
  • 8 posts
  • LocationLos Angeles

Posted 28 May 2006 - 01:38 PM

Ok, thanks!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users