Here i am selecting a li item in a list and changing the border of that li item but if i select another li item the border of the currently selected item is changing but the previously selected li items border color has to change to the original color
Here is my code
$(document).ready(function () {
$("#list3 li").click(function () {
$("list3 li.clicked").removeClass("clicked");
$(this).addClass("clicked");
$(".clicked").css("border", "3px solid red");
});
});
Any suggestion?