I have a javascript function that takes a value. THe value is begin taken from a dropdownlist. I am unable to pass the value to the function and would like to know what I am doing wrong. Any help would be appreciated.
JS Function
Puma.selectEvent = function(year) {
var year = year;
select the event
}
Event on dropdownlist change. The sYear, sMonth, and sSeason are dropdownlist names. The "Puma" is not important.
onChange=Puma.selectEvent(sYear.value);
sYeardirectly, instead of getting by name or id, is working for you? Or you've already retrieved the DOM elements?onChange="Puma.selectEvent(this.value);"