Pradeep_Chinna Posted October 1, 2013 Share Posted October 1, 2013 Hi phpfreaks...:-) when i write simple jquery code in my php file, jquery code is not working/running...only php code is working...:-( why its happening ? Do we require any plugins ? Please give me one simple example like show/hide jquery code in php Quote Link to comment Share on other sites More sharing options...
requinix Posted October 1, 2013 Share Posted October 1, 2013 Show us what you tried. Quote Link to comment Share on other sites More sharing options...
Irate Posted October 1, 2013 Share Posted October 1, 2013 jQuery requires to be loaded from an external source ( try http://code.jquery.com/jquery-1.4.2.min.js ) before you can use any jQuery functions, as jQuery is not integrated into the browser by default. Quote Link to comment Share on other sites More sharing options...
codefossa Posted October 1, 2013 Share Posted October 1, 2013 Along with including jQuery, you will want to wrap your JS in $(document).ready() function so the page loads before attempting to use any of the data in it. Quote Link to comment Share on other sites More sharing options...
Pradeep_Chinna Posted October 2, 2013 Author Share Posted October 2, 2013 Thanks to all freaks :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.