/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$( 'el' ).each( function( intIndex ){ $( this ).bind ( "click", function(){ alert( "tab number: " + intIndex ); //loop $(this).addClass("hilite"); //css var thisTarget = $(this).html(); //grab innerHTML } ); } );
Comments
