Check out this example of a UL tag:
<ul style="list-style-type:none; padding:5px ; border:solid 1px #666666;">
<li>I am waiting </li>
<li>I am waiting </li>
<li>I am waiting </li>
<li>I am waiting </li>
<li>I am waiting </li>
Is there a way with CSS or JavaScript to change the border color of this UL when it is clicked or active? And once I click elsewhere, the effect disappears. I've tried experimenting and searching, but haven't found a satisfactory solution.
Here's a JS Fiddle demo for reference: http://jsfiddle.net/saifrahu28/YFF6P/
If a jQuery solution works better, that's fine too.