Add Remove Class to Make clicked anchor tag active Jquery
For anchor tags adding active class for selected tag and changing the styles is follows.
HTML code.
Here is the scriptHTML code.
<div class="create_d rive">
<a href="#">Some Text</aui:a>
<a href="#">Some Text</aui:a>
</div>
$(document).ready (function(){
$('.create_drive a').click(function(){
$('.create_drive a').removeClass('active');
$(this).addClass('active');
});
});
Comments
Post a Comment