Why is $(document).ready not firing for me?

后端 未结 12 1619
后悔当初
后悔当初 2020-12-10 00:26

In a php file i have used include to include the following js.php file and prior to that i have included the jquery file.



        
12条回答
  •  攒了一身酷
    2020-12-10 01:04

    instead of $( document ).ready( function() { ... } );

    try

    $( document ).ready( abc() );

    function abc() { .... }

    worked for me.i myself searched lot of places, but couldn't find a solution. Tried this out randomly and worked!!

提交回复
热议问题