jquery - How to hide the Div at the Click of the Button in MVC -
jquery - How to hide the Div at the Click of the Button in MVC -
my application in mvc3.i want particular div in view hide @ click of button. below code tried.
$(document).ready(function () { $("#btncompare").click(function () { if(mycondition) { for(myloop) { } } } }); my code not working.as want div hide after click called. please suggest
$(document).ready(function () { $("#btncompare").click(function () { $(".yourdiv").hide("slow"); if(mycondition) { for(myloop) { } } }); });
yourdiv class of div want hide.if there no id in div tag assign class this
<div class="yourdiv"></div> jquery
Comments
Post a Comment