I have a problem with jQuery I'm hoping someone can help with, I've replaced the content of a select box using jQuery's .load function, however if I then request the value of that box it returns the old data.
Currently the item selected is not in the new list, run the Ajax call
jQuery('#user').load(jsonurl + "?mode=list&select=users");
var user = jQuery('#user').val();
alert (user); // Returns old value
Any ideas?
Thanks in advance.