jQuery propagation of an image in a table

I have a simple table that looks something like this...

<table id='main_table'>
	<tr>
                <td><image src='image.png'></td>
		<td>...</td>
		<td>...</td>
		<td>...</td>
	</tr>
</table>

Open in new window


It could have multiple rows added to it via jQuery after the document loads.  I need to attach an event to the image in the first cell for every row (even the new rows that get added).  I'm trying to use jQuery propagation to attach the event to the table.

This code works...
$( "#main_table" ).on( "click", "tr", function(event) {
  		alert("Clicked It");
	});

Open in new window


...and this code works...
$( "#main_table" ).on( "click", "td", function(event) {
  		alert("Clicked It");
	});

Open in new window


But this does not work...
$( "#main_table" ).on( "click", "image", function(event) {
  		alert("Clicked It");
	});

Open in new window




Any ideas on how I can attach the event to the image in each row?

Thanks.
bruno71Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
the tag is img and not image
$( "#main_table" ).on( "click", "img", function(event) {
  		alert("Clicked It");
	});

Open in new window


Test page : http://jsfiddle.net/hcQ2y/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bruno71Author Commented:
Ah.  Thanks!  It's always the little things...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.