I have an array as follows:
var TMonth = new Array('','Jan', 'Feb', 'Mar', 'Apr', 'May','June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
as we all know TMonth[1] will give us Jan TMonth[2] will give us Feb and so on.
My question is how do i find out the index of the element and display it. For example i want to find the index value of Jan how do i do this. Please help
var TMonth = new Array('','Jan', 'Feb', 'Mar', 'Apr', 'May','June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
as we all know TMonth[1] will give us Jan TMonth[2] will give us Feb and so on.
My question is how do i find out the index of the element and display it. For example i want to find the index value of Jan how do i do this. Please help