With JS disabled things go BOOM with the jQuery method, leaving me with the CSS#1 the only option that works fine. The only way to retrieve the correct value in your context is to run $.ajax() function synchronously (what actually contradicts to main AJAX idea). There is the special configuration attribute async you should set to false.In that case the main scope which actually contains $.ajax() function call is paused until the synchronous function is done, so, the return is called only form_prep() is now DEPRECATED and only acts as an alias for :doc:`common function