title: Jquery using :after selector
body: <p>I am currently making a menu and because the menu is an oddshape with a glow around the edge I need to put a blank block over the top to hide the unwanted glow on the overlap. I am creating this using the :after selector on the li tags for the menu and the code to do so works fine. </p>
  
  <p>My problem however is that I can only make it apply to none or all of the menu items at once by toggling the display attribute, what I want however is for the :after selector to only be applied to the current list item. </p>
  
  <p>Each list item has a unique id but I can't seem to work out how to use the :after selector on a specific list item within jquery.</p>
  
  <p>Thanks in advance for any help. Sorry if this is unclear.</p>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;ul id="menu"&gt;
      &lt;li id="0"&gt;link 1&lt;/li&gt;
  &lt;li id="1"&gt;link 2&lt;/li&gt;
  &lt;li id="2"&gt;link 3&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>CSS for the list item</p>
  
  <pre><code>#menu li{
  float:left;
  margin:0 20px 0 0;
  height:87px;
  z-index:1;
  position:relative;
  background: #f8f8f8;
  cursor:pointer;
  border:1px solid #CCC;
  border-bottom:none;
  }
  
  #menu li:after{
  display:none;
  content: '';
  position: absolute;
  top: 0;
  bottom: -5px;
  left: 0;
  width: 291px;
  height:10px;
  margin-top:109px;
  background: #f8f8f8;
  }
  </code></pre>
  
  <p>I thought it would be as simple as putting something like </p>
  
  <pre><code>$$('li[id="0"]:after').show();
  </code></pre>
  
  <p>or maybe </p>
  
  <pre><code>$$('li[id="1"]:after').css("display" : "block");
  </code></pre>
  
  <p>but these does not work.</p>