// active button in menu
//create in css file .active class
$('#yourButton').click(function(e){
e.prenventDefault();
$('a').removeClass('active');
$(this).addClass('active');
});
2 Responses
This is not javascript.
This code will not work without a library jquery.
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
2 Responses
This code will not work without a library jquery.
I changed the language to Jquery.
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.