New to javascript, but I’m sure this is easy. Unfortunately, most of the google results haven’t been helpful.
Anyway, I want to set the value of a hidden form element through javascript when a drop down selection changes.
I can use jQuery, if it makes it simpler to get or set the values.
If you have HTML like this, for example:
All you have to do is bind a function to the
changeevent of the select, and do what you need there:All things considered, if you’re going to be doing a lot of jQuery programming, always have the documentation open. It is very easy to find what you need there if you give it a chance.