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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -