$('document').ready() is not running on form submit
Hi I have a page that has a login form. This login form hast three steps: enter username, enter security answer and enter password. Now this page has some html elements that get repositioned during the ready event like so:
- $('document').ready(function(){
- $('#targetPlaceholder').html($('sourceElement'));
- });
Now this code is only running during the first load, and whenever the user submits his username (we never move away from the page until the correct password is submitted) the repositioned elements go back to their original position.
Do I have to use some other event like load on the body or other div, etc?