Unable to using toggle in jquery
<p>My jquery:             </p>

<pre><code>$('#imgCancel').toggle(function () {
    $.each($("#List li"), function (index, item) {
        $('#menuList li').removeClass("Selected");
    });
    $('#txtName').html('');
    $('#imgAdd').show();
    $('#imgUpdate').hide();
});
}, function () {   //Eroor ---- Expect identifier or string
    $('#List li:First').addClass("Selected");
    $('#imgAdd').hide();
    $('#imgUpdate').show();
});
}
});
</code></pre>

<p>But its not a proper way to handle toggle.I got error.How to perform this task in toggle plz suggest.Thanks.</p>
