webtuto Posted June 5, 2009 Share Posted June 5, 2009 hi i made a page where i included j query , and everything was working fine , all fine but after that i included a PLUGIN (lightbox) , so the plugin worked fine , and not the jquery code i made my self :s firebug gives me this error --> $("#body_edit") is null [break on this error] $('#body_edit').toggle(); Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/ Share on other sites More sharing options...
RichardRotterdam Posted June 5, 2009 Share Posted June 5, 2009 You are probably using the prototype lightbox version. If so prototype and jQuery are conflicting with one another Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850183 Share on other sites More sharing options...
webtuto Posted June 5, 2009 Author Share Posted June 5, 2009 yes its true im using prototype version so whats the solution ? Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850185 Share on other sites More sharing options...
RichardRotterdam Posted June 5, 2009 Share Posted June 5, 2009 I recommend you get a jQuery based lightbox. You can also use jquery noConflict. But it can be a bit trickier to some. Just do a search for "jquery lightbox" and use that one instead. Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850191 Share on other sites More sharing options...
webtuto Posted June 5, 2009 Author Share Posted June 5, 2009 thanks , i used jquery nonconflict , thanks its solved Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850193 Share on other sites More sharing options...
Ken2k7 Posted June 6, 2009 Share Posted June 6, 2009 You can always change the $ to jQuery. Quote Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850394 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.