• Resolved cmentality2

    (@cmentality2)


    Hello,

    I have some sort of unsupported lines in an jQuery code.
    After 2 errors in the Markup Validation, it can’t even check my pages anymore.
    Is there somebody who can help me with this? It’s the following code that has some lines which cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding).

    $(“a.switch_thumb”).click(function () {
    $(“a.switch_thumb”).toggleClass(“swap”);
    $(“ul.display”).fadeOut(“fast”, function() {
    $(this).fadeIn(“fast”).toggleClass(“thumb_view”);
    });

    $.cookie(‘view_State’, $(‘ul.display’).is(‘.thumb_view’) ? ‘list’ : ‘thumbs’ );
    });

    // COOKIES
    // view state
    var view_State = $.cookie(‘view_State’);
    // Set the user’s selection for the viewState
    if (view_State == ‘thumbs’) {
    $(“ul.display”).addClass(“thumb_view”);
    $(“span.switch_thumb”).addClass(“swap”);
    };

    });

    I think I got the error in the line that is bold.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery error’ is closed to new replies.