Performance Issue : Calling of change event of combobox
I have made an application and in that there is a combobox which has 2items year2014 and year2015 . Now according to the year selected data would be displayed . And on the change event of the combobox I have called a function . Just an alert is kept inside that function .
Now when i change the value of combobox the change event should be fired and immediately the alert should appear . But it takes nearly 60 seconds to display that alert which is there in that function . Can anyone guide me why is this happenenig ? And how to reduce time ?