Jump to content

Archived

This topic is now archived and is closed to further replies.

veroaero

Check drop down form

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.