Skip to main content

Bug Tracker

Side navigation

Ticket #3996: test-bug-triggerHandler.html

File test-bug-triggerHandler.html, 1.4 KB (added by JuniorZ, January 26, 2009 03:42PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Is it a BUG in jQuery 1.3?</title>
<script type="text/javascript" src=""></script>
<script language="javascript">

			$('table').append($('<tr><td><input type="text" value="" /></td></tr>'));

		//Input click
		$('table td input').live('click', function(ev){
			console.log('input "click" event');

		//TD click
		$('table td').live('click', function(ev){

			//Ignores if is a bubbled event
			if( != this){ return false; }'td "click" event');
				console.log('but where is the input "click" event?');
			} else {


  <table width="200" border="1">
      <th id="insert-row">Insert Row</th>
<input type="checkbox" id="triggerHandler" value="yes" checked="checked" /><label for="triggerHandler">Use triggerHandler</label>

Download in other formats:

Original Format