Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Dear,
Experts,

I am having requirement to show popup when i click on any menu,that menus are desinged using ul and li elements in master page, and master page is attached with default page,
so how can we access elements of master page in content page using jquery to execute alert box on click...


Thank You
IN ADVANCE.
Posted
Comments
Sinisa Hajnal 28-Jan-16 2:41am    
jQuery is client side framework. There is no master page so you access any element from the page via normal selectors (class, tag, id or combination thereof)
Member 10578398 28-Jan-16 3:44am    
THANK YOU FOR YOUr ANSWER,

yes jquery is client side framework,,, u r right
i am trying to access li elements using jquery selector like
$('[id$=limnuDashboard]').click(function(){
alert("this is wokrin....");
});
this is not working...
this code is in default.aspx page...
and actually the li element with id limnuDashboard is in master page and master page is attached with....default.aspx...
we can access any elements from simple page one wich is without master page easily but its having problem to access elements of master page in content page....

hope i could explained actual situation correctly,,,




thanks,
IN ADVANCE...

1 solution

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