Onchange didn't show or hide Div
<p>I've a problem with my Script, please take a look.</p>

<p>My Javascript</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function()
{
    $("#datetimepicker_mask2").change(function() 
    { 
    var tanggalnya = $("#datetimepicker_mask2").val();
        $.ajax({ 
        type: "POST", 
        url: "http://localhost:84/helpdesk2/forgot_password/check_date/"+tanggalnya,
        success: function(msgtgl){ 
        if(msgtgl === 'benar' ){
            console.log(msgtgl);
            $('#form_email').show();
            }
        else
            {                   
            console.log(msgtgl);
            $('#form_email').hide();;
            }
        }
    });
return false;
    });
    });
&lt;/script&gt;
</code></pre>

<p>My HTML</p>

<pre><code>&lt;div class="login-box-body"&gt;
    &lt;div id="form_email"&gt;
      &lt;form action="http://localhost:84/helpdesk2/forgot_password/check_date/" method="post"&gt;
    &lt;div class="form-group has-feedback"&gt;
            &lt;input class="form-control" id="email" placeholder="email@domain.com" name="email" /&gt;
            &lt;span class="glyphicon glyphicon-envelope form-control-feedback"&gt;&lt;/span&gt;
    &lt;/div&gt;
            &lt;/div&gt;
            &lt;div id="hasiltanggal"&gt;&lt;/div&gt;
        &lt;/div&gt;
</code></pre>

<p>my PHP </p>

<pre><code>function check_date($tanggalnya)
    {
        extract(PopulateForm());
        $nipnya = $this-&gt;session-&gt;userdata('nip');
        $hasil = $this-&gt;db-&gt;query("SELECT BirthDate from Employee where Nip = '".$nipnya."'")-&gt;row();
         if(indo_date($hasil-&gt;BirthDate)==indo_date($tanggalnya))
            {
                echo "benar";
            }
            else
            {
                echo "salah";
            }
    }
</code></pre>

<p>note: <code>populateform()</code> is one of my helper that handle the input.</p>

<p>I can't show my <code>form_email</code>. I wonder why, because in <code>console.log(msgtgl)</code> i receive <code>benar</code>.  So, the <code>form_email</code> should be showed up, right?</p>