JQuery doesn’t work?

I am really new to jQuery so sorry if this is a stupid question but can someone tell me why my jQuery statements aren’t working?

http://alanbrandt.com

Read More

I have a script called scripts.min.js on the above wordpress site and a large number of the functions don’t seem to work, it uses the modernizr scripts is this what is causing the issue?

EG:

<div id="horizontal-scroll" class="">

<script type='text/javascript'>
jQuery(function (e) {
    e("a.expandStories")
        .click(function () {
        e("#horizontal-scroll")
            .fadeIn(950);
        return !1
    })
});


jQuery(function (e) {
e("#horizontal-scroll")
        .jScrollPane({
        autoReinitialise: !0,
        verticalDragMinHeight: 60,
        verticalDragMaxHeight: 60,
        scrollbarWidth: 6
    });
});
</script>

Can someone please tell me why these functions aren’t working?
What am I doing wrong?

Cheers! 🙂

Related posts

Leave a Reply

1 comment

  1. Hi opening the site above with Google Chrome, got this errors:

    Uncaught TypeError: Object [object Object] has no method ‘inFieldLabels’ scripts.min.js:200

    and also this font
    Failed to load resource the server responded with a status of 404 (Not Found) http://alanbrandt.com/wp-content/themes/alanbrandt/fonts/bryantpro-medium-webfont.woff

    there are more conglicts between this plugin and other frameworks, for example:
    In-field labels plugin not working

    and also maybe relevant
    Using Google JSAPI breaks my infieldlabel javascript, why and how do I fix it?

    in the last its suggested the use of

    $j = jQuery.noConflict();
    check what frameworks you have installed and any conflicts with this plugin

    hope it helps