How to get value and index of list item onClick event with jQuery? for example:
Item 1 Item 2&
$('ul li').click(function(){ var value = $(this).text(); var index = $('li').index($(this)); });
check this for more details