Return to Snippet

Revision: 21457
at December 13, 2009 20:27 by anobre


Updated Code
$( 'el' ).each(
	function( intIndex ){
		$( this ).bind (
		"click",
		function(){
			alert( "tab number: " + intIndex ); //loop
			$(this).addClass("hilite"); //css
			var thisTarget = $(this).html(); //grab innerHTML
		}
		);
      
	}
);

Revision: 21456
at December 13, 2009 20:26 by anobre


Initial Code
$( 'el' ).each(
		function( intIndex ){
			$( this ).bind (
			"click",
			function(){
alert( "tab number: " + intIndex ); //loop
$(this).addClass("hilite"); //css
var thisTarget = $(this).html(); //grab innerHTML

			}
			);
      
		}
	);

Initial URL


Initial Description


Initial Title
Click event with el loop and bind()

Initial Tags


Initial Language
jQuery