Javascript, jQuery | Type: JavascriptHow to Initialize jQuery Scripts

Stops the javascript error that doesn’t recognize ‘$’ as a valid function.

THIS:
<script type="text/javascript">
jQuery(function($) { //added
    $('.banner').unslider({
    });
}); //added
</script>

NOT THIS:
<script type="text/javascript">
$('.banner').unslider({
});
</script>

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept