I am using menu in my aspx pages with using jquery.click. in my asp.net page.
if page not include parameters (such as “mypage.aspx) click function is work fine and my menu opening ,but when I open page with parameters (such as “mypage.aspx?id=3),in page ,my click function doesn’t work and menu not open.
This is my jquery.click function:
// Show menu
$("a.showMenu").click(function () {
if (menuStatus != true) {
$(".ui-page-active").animate({
marginLeft: "165px",
}, 300, function () {
menuStatus = true
});
return false;
} else {
$(".ui-page-active").animate({
marginLeft: "0px",
}, 300, function () {
menuStatus = false
});
return false;
}
});
This is my html code (which open menu) in mypage.aspx
<a href="#" class="showMenu"><img src="images/icon-menu.png" alt="Menu" border="0" /></a>
How can I do?
This is a good test to try, just to see if the jQuery is working:
If not, then have you referenced the jQuery.js file? Something like: