JSFiddle - React, Tailwind, and code Playground

by forssux

HTML

<table class="checkout-basket" cellspacing="0" rules="all" border="1" id="ctl00_ctl00_cphContent_cphContent_gvBasketitem" style="border-collapse:collapse;">
		<tr>
			<th scope="col">&nbsp;</th><th scope="col">&nbsp;</th><th scope="col">Asset</th><th scope="col">&nbsp;</th>
		</tr><tr>
			<td style="width:30px;">
                                        <input id="ctl00_ctl00_cphContent_cphContent_gvBasketitem_ctl02_CbFlag" type="checkbox" name="ctl00$ctl00$cphContent$cphContent$gvBasketitem$ctl02$CbFlag" />
                                    </td><td style="width:80px;">
                                        <a onclick="return confirm(&#39;Bent u zeker dat u deze asset wil verwijderen?&#39;);" id="ctl00_ctl00_cphContent_cphContent_gvBasketitem_ctl02_lbDelete" class="button" href="javascript:__doPostBack(&#39;ctl00$ctl00$cphContent$cphContent$gvBasketitem$ctl02$lbDelete&#39;,&#39;&#39;)">verwijder</a>
                                    </td><td style="width:100px;">
                                                    <img id="ctl00_ctl00_cphContent_cphContent_gvBasketitem_ctl02_Image1" src="../../cache/images/thumb/28330DF924C002DBDC52F73E9E8A9A2DE9CEF4ED_156.jpg" style="width:80px;border-width:0px;" />
                                                </td>
                                                <td>
                                                      <h2>
                                                            <a href='/nl-BE/asset/274203/'>
                                                                274203
                                                            </a>
                                                        </h2>
                                               
                                                        <h2>
                                                            <a href='/nl-BE/asset/274203/'>
                                                                20151020_143033_0029
                             ...

JavaScript

$('#checkout-basket').on('click','h2', function(){
    console.log('you clicked me');
});