Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery find index of this

$(document).ready(function() {

    $("#example div").click(function() {
        var index = $("#example div").index(this);
        $("#example_index").html("Index " + index + " was clicked");
    });
   
});
Source by electrictoolbox.com #
 
PREVIOUS NEXT
Tagged: #jquery #find #index
ADD COMMENT
Topic
Name
1+1 =