Hey everybody,

I want to use the JQuery UI Slider (http://jqueryui.com/demos/slider/#steps) in a function within my JavaScript file. So I adapted the code as follows:

function slideyear() {
$("#slider").slider({
min: 1990,
max: 2008,
value: 1990,
step:1,
change: slideyear( event, ui ) { $( "#year" ).val( ui.value );
};
});
$( "#year" ).val( $( "#slider" ).slider( "value" ) );
//update_date();
}


Now, there is an error in FireBug:


"missing } after property list" at

change: slideyear( event, ui ) { $( "#year" ).val( ui.value );


Where is my mistake?


Cheers,
Stoppelbo