The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Changing a variable outside of a function Reply To: Changing a variable outside of a function


Hi Paulie

Thanks for posting.

Yeah I am referring to a <select>, sorry I always incorrectly call these drop downs.

Well the plugin handles bringing in the images I just need to change the URL that it points to when the user makes a selection in the select box.

I actually also asked this question on Stack Over Flow and someone has kindly replied. I think their answer will work. I was changing the variable but not refreshing the AJAX call.

Their solution is here, if you can add anything to this I’d like to know.

Thanks again.