after puting this jquery code my oher li tags(menu in head) stop working so i wonder why. They have another class but they don't work so i clicking them and nothing happen
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function() {
$("li").click(function(e) {
e.preventDefault();
$("li").removeClass("selected");
$(this).addClass("selected");
});
});
</script>
<ul class="tabrow">// this example works fine
<li><a href="#">tab1</a></li>
<li><a href="#">tab2</a></li>
<li class="selected"><a href="#">tab3</a></li>
</ul>

New Topic/Question
Reply


MultiQuote



|