example code for element javascript

jbyrley

Member
Sorry this is a very basic request. I have several elements that each have many, many javascript actions using the pre-defined javascript.

I have not found a way to get to set the pre-defined actions to allow for logical operators so as to cut down on the number of predefined actions, for example by setting the required value to equal "1 || 2" before the event is triggered.

I believe I have to do that using the custom javascript. So far my attempts have failed. I was am requesting for one of you kind people to send me an example javascript that I could plug into the custom javascript box that would do the following:

On change, when element a == 1 || 2 slide out element b && slide in element c.
On change, when element a == 3 || 4 slide in element b && slide out c.

I think if I have this basic example I could figure out the rest.

Thank you!!
 
Thank you. I was afraid I might just get referred back to that page, which I've already reviewed, but unfortunately doesn't seem to have the example code for the actions I am trying to do. Oh well. I will keep trying and if anyone else has any other ideas for this newbie, I'd appreciate it!
 
Back
Top