Revision: 21457
Updated Code
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
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
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