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 appreciated!

Thanks, Knal


$(function(){

        if( !$( "div.introbody" ).length ){
                $( ".project" ).initSlides()
        }

        $.fn.extend({

                initSlides: function() {

                        var t = $(this).attr( "id" )

                        $( "#" + t + " img" ).hide()

                }

        })

});

Reply via email to