Forums

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

#167832
Ricky55
Participant

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.

http://stackoverflow.com/questions/22936760/change-a-url-in-a-ajax-call-using-jquery

Thanks again.

Richard