How to check data content inside $.post function?
<pre><code>$.post(
    $("#formReg").attr("action"), $("#formReg").serialize(),
    function(data, textStatus, jqXHR) {
            $("#info").html(data);
        alert (data); // to check - ok - `folder` is displaying
        if ($("#info").html() == "folder"){
        $("#imgOk").fadeIn();  //doesn't work
        }
});
</code></pre>

<p>Seems like <code>#info</code> has another content and not <code>folder</code>, although is checked by alert, and <code>folder</code> is visible on screen as the content.</p>
