I have array which holds option values from select.
var arrValues = new Array();
$("#myId option").each(function()
{
var sel = $("#myId").val();
arrValues.push(sel);
}
now I want to find current selected value from #myId select option and take next array index value.
forexample if array contains values like
array = "AB", "CD", "EF"
if my currently selected value is AB I want to take CD value and store into var nextValue variable.