I went trough, jquery .live() event interactions and What event does JQuery $function() fire on? i dint get write answer, so thought to go new,
- I have list of different pages as follows
- Index(terms and conditions)
- Login
- Splash
- Dashboard
- I have validations in index page and login page.
I have used one more jQuery file called, validation.js which is linked to all pages. I have placed all the validations inside
$(document).ready(function() {
});
I have validations in index page and login page.
When site navigation, validations are not fire, but if I place validations
$('div').live('pageshow',function(event){
}
then it works.
Just want tto verify.
- Is this correct, if not please suggest me.
- document.ready as in jQuery, what is the best in jQuery Mobile