While I'm just starting with ASP.NET MVC and jQuery, I cannot even solve a quite simple task...

I am using a strongly-typed view to display a list of products, where every li-element gets a unique id:

&lt;ul id="product-list"&gt;    
  &lt;% foreach (var item in Model.Products)
    { %&gt;   

        &lt;li &lt;%= "id=\"product_" + item.Id + "\"" %&gt; &gt;  
            &lt;div class="item"&gt;
               &lt;%= item.Name %&gt;  
            &lt;/div&gt;
        &lt;/li&gt;     

  &lt;% } %&gt;
&lt;/ul&gt;


Now I want to attach to the click-event of every single li-element, so that if the user clicks on a div-element, detailed product-informationen should be loaded asynchronously into a details-pane. 

I know how I can use jQuery to invoke an action-method ajax-style and also how to display the json-result which contains the product-details, BUT I have no idea, how I could attach the onclick-event to every single div, so that I can use the productId to load the details.

Can someone please give me some tips, how I could solve this problem?


Question: How was the sword of Gryffindor pulled from the hat a second time?
Answer: Perhaps the Sorting Hat is the sheath for the Sword of Gryffindor, like how in 'Percy Jackson and the Lightning Thief',


  the backpack Ares gave Percy was the sheath for Zeus's Master Bolt.