Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have used this code but it's executing whenever i click any where in page

$(function() { $("#<%=cmshow.ClientID%>") }).click(function(){$("#available").toggle("slow");});



i want such code which call toggle on each click of an asp .net button
Posted

1 solution

you can used this by using its id 

$(function() {


 $("#asignYourButtonID").click(function(){
$("#available").toggle("slow");
 });
}); 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900