jquery find index code example
Example 1: jquery index of element
$("#wizard li").click(function () {
console.log( $(this).index() );
});
Example 2: 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");
});
});