Home › Forums › JavaScript › Changing a variable outside of a function › Reply To: Changing a variable outside of a function
April 8, 2014 at 7:44 am
#167832
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