want I want is when I click the users link i want the users name to be displayed and all the other links here should disappear.. in the same div... is it possible in css can any one suggest is there any ajax, jquery or javascript solution is avaliable..
Better use <ul> for navigations like this. Not only does google like it more, its just good practise.
And u can use jQuery to bind an action to '#users' that hides or fadesout the items u dont like manually. Like: $("#users").bind("click", function(e) { $('#item2').fadeOut(); }
Automated solutions are better but a bit more complex to build, read up on the jQuery api if you wanna try that. Have fun, jQuery rocks! :)
ajenny!! this code worked for me, but i have a question that my menu div is having many links and each link has its own sublist , this is what i am using..
so here this is only for users link to show its sublist , and if i want to do the same with product link i have to copy and paste the function.. I think that will make a mess.. so can you or anyone here can give me a example of function so i dont have to copy paste.....