title: remove item from listview using jquery or javascript
body: <p>I have the below listview and I want to remove an item when the user presses the add to cart button. I am not 100 percent sure how the listview works because ID's have to be unique and as you can tell the table row with an ID of gameRow will not be unique.  What I am wanting to achieve is to remove all of the tr's inside of that gameRow when the user presses the add to cart button.</p>
  
  <p>I am using a asp listview and populating this through the selectmethod.</p>
  
  <pre><code>&lt;asp:ListView ID="lvProductListing"
                ItemType="CommonBusinessObjectsGS.Game"
                SelectMethod="GetGames"
                DataKeyNames="GameId"
                runat="server" EnableViewState="false"   &gt;
      &lt;LayoutTemplate&gt;
          &lt;table id="productListingTable" class="productLisingTable"&gt;
              &lt;tr id="itemPlaceholder" runat="server"&gt;&lt;/tr&gt;
          &lt;/table&gt;
      &lt;/LayoutTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;tr id="gameRow"&gt;
          &lt;tr&gt;
              &lt;td rowspan="6"&gt;
                  &lt;img class="gameImageIdClass" id="gameImageId" src="&lt;%#:Item.GameImageString%&gt;" alt="" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;
              &lt;td&gt;&lt;%#:Item.GameName%&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;%#:Item.PlatformName%&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;%#:Item.ConditionShortDescription%&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;%#:Item.RetailCost.ToString("c")%&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;button id="btnAddToCart" name="btnAddToCart" onclick="removeGameRow()" value="&lt;%#:Item.GameId %&gt;"&gt;Add to Cart&lt;/button&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:ListView&gt;
  </code></pre>