click event for add class
i'm try to create navigation like ibm.com.
-
$(document).ready(function(){
$(".home").click(function(){
$("#toggleNav").show("slow");
$(".home").removeClass('home').addClass("homeactive");
});
});
then i want to do, After clicked homeactive hide toggleNav
- $('.homeactive').live('click', function(){
- alert ("ok");
- });
but this is not working. I also try removing live.but not working.
Please Any one can help me to do this navigation like IBM web site.
Thank You for your help.