jquery set index for list item text code example
Example: jquery index of element
$("#wizard li").click(function () {
console.log( $(this).index() );
});
$("#wizard li").click(function () {
console.log( $(this).index() );
});