Jump to content

submit form for this code


Recommended Posts


I have two options  like option1 and option2 from a drop down list.

When i select option1,it shows option1A  and option1B

When i select option2,it shows option2A  and option2B.

Its like either of one selection.After selecting, how can i submit the form.

where to call the submit button , so that both my selected values gets submitted.

Attached is the file


Thanks and Regards

Rizwan Syed

submit form.txt

Link to comment
Share on other sites

??? Where you usually place a submit button, at the bottom within the opening/closing form elements?

You can place all those within a single form with submit at bottom then prevent the hidden dropdown submitting anything, even if an option was selected prior to be hidden by adding disable attribute to hidden select element itself.


ALSO you can't have identical id references on the same page, it will always work with the first encountered and ignore the rest.

Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...