I am rendering Html in react JS that is:
return (
<div>
<table id="displaydata">
<td className="update_record"><a href={"http://localhost/PHP-React-Demo/update_record.html?id=" + d.id}><img className="edit" src="http://localhost/PHP-React-Demo/images/edit_logo1.png"/></a></td>
<td className="delete_record"><input id="closeAuction" type="image" className="delete" src="http://localhost/PHP-React-Demo/images/delete-button.png"/></td>
</tr>
)}
)}
</table>
</div>
)
And now I want perform JQuery actions on click of image. I have tried for onClick and now trying the following JQuery code
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js">
$(document).ready(function() {
$('#closeAuction').click(function() {
location.reload();
});
});
</script>
This JQuery code but it shows nothing. Only html rendered the action is not performing.