GET ItemValue and Item Name using Index
Hi,
I am urgently need a code in this manner
var chkIndex = $('#ddlLevel').get(0).selectedIndex - 1;
alert('chk: ' + chkIndex);
here i got previous index value using current index, now i want to retrieve item value and item name using that previous index value, my code is
var chkValue = $('#ddlLevel').val(chkIndex);
alert('val: ' + chkValue);
but not able to fetch item value and item name
// Pass Item Name and Item Value to 2 variable on basis of index value
Regards
Muhammad Atif Nadeem
Software Engineer
University of Karachi