title: How to select and unselect a li item using jquery?
body: <p>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</p>
  
  <p>Here is my code</p>
  
  <pre><code> $(document).ready(function () {
          $("#list3 li").click(function () {
              $("list3 li.clicked").removeClass("clicked");
              $(this).addClass("clicked");
              $(".clicked").css("border", "3px solid red");
  
          });
    });
  </code></pre>
  
  <p>Any suggestion?</p>