jeudi 23 avril 2015

Javascript error: Uncaught SyntaxError: Unexpected token if

I can't find anything wrong with this if statement, but I keep getting an error

if($('.tag-select')[0]){
    $('.tag-select').chosen({
        width: '100%',
        allow_single_deselect: true
    });
}

Aucun commentaire:

Enregistrer un commentaire