Monday, 12 August 2013

How to use Jquery to add click function for run time added image?

How to use Jquery to add click function for run time added image?

i have a HTML table markup which generated on browser when user click.
here is the Code
$('#selectedtable > tbody:first').append(
'<tr > ' +
'<td>Chair</td>' +
'<td><img src="/Content/images/showinfo.png" title="Show
Info"></td>' +
'</tr>'
);
So my question is that possible to add click event for the above generated
image?

No comments:

Post a Comment