Menu
  • HOME
  • TAGS

How to change url of ajax function depending the return value of beforesend() function?

javascript,jquery,ajax,beforesend,data.success

try this $.ajaxSetup({ beforeSend: function(jqXHR, settings) { settings.url ="new Url"; } }); ...