Re: [jQuery] Function won't fire on load...

2010-01-14 Thread Gus Waddell
Hi Knal, You need to have the function available before you try and call it. Try putting the $.fn.extend at the top of your script... -- $(document).ready(function(){ $.fn.extend({ initSlides: function() { alert('initSlides'); var t = $(this).attr( "id" ) $( "#" + t + " img" ).h

[jQuery] Function won't fire on load...

2010-01-14 Thread knal
Hi there, I have a function/plugin (below this message) which should fire after it is checked that div.introbody doesn't exist. There is only a single div.project on the page for sure but i don't know how to fire the function. I've been struggling with this all night! Any help will be greatly appr