Calling a click event or JQuery function from the code behind VB.NET
I have a JQuery (v1.8) which handles the code after clicking a hyperlink.
I would like to call that click or do anything else (as the clicking of
the link would) to enforce the JQuery to run from the code behind. Any
ideas?
JQuery code:
<script type="text/javascript">
jQuery(document).ready(function (){
jQuery('#lnkShowModule').toggle(
function (){
jQuery(this).html('Hide the Module');
jQuery('.hide-element').toggle();
},
function (){
jQuery(this).html('Show the Hidden Module');
jQuery('.hide-element').toggle();
}
);
});
and this is my link on the ascx control:
<a id="lnkShowModule" href="#"> show the hidden module</a>
any ideas?
No comments:
Post a Comment