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 Link to comment https://forums.phpfreaks.com/topic/282593-php-jquery/ Share on other sites More sharing options...
requinix Posted October 1, 2013 Share Posted October 1, 2013 Show us what you tried. Link to comment https://forums.phpfreaks.com/topic/282593-php-jquery/#findComment-1451992 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. Link to comment https://forums.phpfreaks.com/topic/282593-php-jquery/#findComment-1452031 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. Link to comment https://forums.phpfreaks.com/topic/282593-php-jquery/#findComment-1452041 Share on other sites More sharing options...
Pradeep_Chinna Posted October 2, 2013 Author Share Posted October 2, 2013 Thanks to all freaks :-) Link to comment https://forums.phpfreaks.com/topic/282593-php-jquery/#findComment-1452267 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.