How would I code the javascript for the "On Select" event of a drop-down selection if I want to turn on the visibility indicator for another field on the screen?
Thank you,
javascript code
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: javascript code
Patti,
There isn't an onselect event for a select box, but you can use the onchange event property. Which triggers when the select box option is changed.
Not really knowing how you application is supposed to work, you could use something like this in the onchange event in the select box:
or
This sets the widget visibility to 'visible' when the onchange event is triggered in the dropdown. You could also set this up to happen when a specific option is selected.
There isn't an onselect event for a select box, but you can use the onchange event property. Which triggers when the select box option is changed.
Not really knowing how you application is supposed to work, you could use something like this in the onchange event in the select box:
Code: Select all
applyProperty("myWidget", "visibility", "visible");
Code: Select all
applyProperty("myWidget", "visibility", "hidden");
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: javascript code
Thank you, Scott
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest