Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP
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 21 Dec '12 - 1:04


1 solution

you can used this by using its id 
 
$(function() {
 

 $("#asignYourButtonID").click(function(){
$("#available").toggle("slow");
 });
}); 
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 8,123
1 OriginalGriff 6,040
2 CPallini 3,432
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid