Passing Variable From Javascript To Product Page

Hi. I added a javascript code in update_detailed_images.post.tpl file. This code will change second select option box based on the first select box dynamically. I am trying to pass variable from javascript to product page (admin.php?dispatch=products.update&product_id=17)

How to do this?

You can't go from browser to server. It is a security issue.

Why don't you adjust the menu in the php code that generates the menu versus trying to do it in JS?

You can't go from browser to server. It is a security issue.

Why don't you adjust the menu in the php code that generates the menu versus trying to do it in JS?

Hi. I didn't understand what you mean. Could you give detail?

I reread your original post and my approach won't work for you. Any reason you can't use "sequential option processing" to get what you need. You can look at how they implement countries/states where depending on what country you choose, you get a different 2nd menu of states.

Thanks.