I\'ve been sifting around the web trying to find out whats going on here and I have not been able to get a concrete answer.
I have one $(document).ready
$(document).ready
I had a similar issue today. A caused the $(document).ready(...) event to fire again in my case. Changing the code to solved the issue for me.
$(document).ready(...)
See document.ready function called again after submit button? here on stackoverflow for more details.