event.target on ie 8
<p>jquery newbie here.  </p>

<p>Is there a problem using <strong>event.target</strong> in ie8?</p>

<p>It seems to be working in ie9 and on my android. </p>

<p>This is my code:</p>

<pre><code> &lt;script type="text/javascript"&gt;
   $(function() {
       $('#myMenu')[0].onclick = function(event) {
       var selected = event.target.innerHTML;
       var url = 'RedirectMenu.aspx?val=' + selected;
       location.href = url;
       }
   });
 &lt;/script&gt; 
</code></pre>

<p>The html is </p>

<pre><code> &lt;ul id="myMenu"&gt;
 &lt;li&gt;&lt;a href="#"&gt;Generic Clinical Tasks&lt;/a&gt;&lt;/li&gt; 

 &lt;li&gt;&lt;a href="#"&gt;Facility&lt;/a&gt;   
    &lt;ul class="level2"&gt;
     &lt;li&gt;&lt;a href="#"&gt;Change Facility or Unit  &lt;/a&gt;&lt;/li&gt; 
     &lt;li&gt;&lt;a href="#"&gt;Edit Facility nformation&lt;/a&gt;&lt;/li&gt;  
     &lt;li&gt;&lt;a href="#"&gt;Doctors&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#"&gt;Nurses&lt;/a&gt;&lt;/li&gt; 
    &lt;/ul&gt;
&lt;/li&gt;

 &lt;li&gt;&lt;a href="#"&gt;Patient&lt;/a&gt;   
    &lt;ul class="level2"&gt;
etc...
</code></pre>

<p>To clarify - as I said I am a newbie. This is how I was able to get the item selected, not just that one of the menu items was clicked. </p>

<p>How am I supposed to do this using jquery?</p>

<p>Right now, the value of 'selected'</p>

<p>var selected = event.target.innerHTML; </p>

<p>is Doctor, when the Doctor menu item is clicked.</p>
