jQuery Mobile pageinit/pagecreate not firing

后端 未结 7 1908
栀梦
栀梦 2020-12-05 05:24

I have 5 pages - for ease lets say:

  • one.html
  • two.html
  • three.html
  • four.html
  • five.html

When I load each indivi

7条回答
  •  一整个雨季
    2020-12-05 06:05

    The following works fine

    ... ...

    test.js may contain the following code

    // test.js starts here
    
    $('#signupForm').on('pageinit', function(){
        // your code goes here
        ...
        ...
    
     });
    // test.js ends here
    

    In your login form, you may have link for signupForm and data-ajax="false" should be included in href tag that links to signupForm.

    Happy Coding

    Kuppuram

提交回复
热议问题