My jquery:
$('#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();
});
}
});
But its not a proper way to handle toggle.I got error.How to perform this task in toggle plz suggest.Thanks.
for each you can replace it by this if you want to escape the first one