var el = $(this); // it's a form
At some point:
el.replaceWith('<p>Loading...</p>');
Later:
el.replaceWith(output);
Apparently el doesn't exist anymore after the first replaceWith...
Can I keep somehow el
, obviously with the new content ?