Jump to content

Conditions


MARCELO
 Share

Recommended Posts

Consider a custom checkbox (from 1 to 5) and a custom select (it might be VOLVO, FORD, VW and JEEP).

For every number i choose in the checkbox (and i may choose more than one), a question will be shown (and so, more than one question may be shown). For the one i select in the custom select, a price for example will be shown.

I know how to build these custom checkbox and custom select, but now i need to build these results for each action

These both examples are related to JavaScript conditions, right? This is the closest i found about these ideas.

 

Thanks.

Link to comment
Share on other sites

if the question is always the same then you can assign the same class to each of the alternative options and use the class name as a jQuery selector for a handler that produces the desired message.  If the question is different for each option, then your selector becomes the value of the id property assigned to each option.

Have fun!

Roddy

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
 Share

×
×
  • Create New...