|
-
missing } after property list
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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks