MVC JavaScript code does not work
<p>I'm trying to do the mail box. Codes I want to hide my mail I get mail all the details of the show and yet does not work.</p>

<p>Show/Hidden class id='Detay'</p>

<p>Nuget Package = MimeKit</p>

<p>Show part</p>

<p>Clicked javascript I want to hide the data-side was the same.</p>

<pre><code> &lt;span onclick="Goster()" class="sender" data-id="@item.MessageId" title="@item.From"&gt;@item.From &lt;/span&gt;
</code></pre>

<p>It was to hideShow/hidden </p>

<pre><code>   &lt;div id="Detay" data-id="@item.MessageId" style="display: none"&gt;
</code></pre>

<p>hidden button </p>

<pre><code>&lt;div class="messagebar-item-left"&gt;
                                                                            &lt;a onclick="Gizle()" href="#" class="btn-back-message-list"&gt;
                                                                                &lt;i class="ace-icon fa fa-arrow-left bigger-110 middle blue"&gt;&lt;/i&gt;
                                                                                &lt;b onclick="Gizle" class="middle bigger-110"&gt;Geri&lt;/b&gt;
                                                                            &lt;/a&gt;
                                                                        &lt;/div&gt;
</code></pre>

<p>javascript code</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function Gizle() {
        var divObject = document.getElementById('Detay');
        divObject.style.display = 'none';
    }
    function Goster() {
        var divObject = document.getElementById('Detay');
        divObject.style.display = 'block';
    }

&lt;/script&gt;
</code></pre>