Richard
Richard

Reputation: 6116

JQuery Settings the options for a plugin

Can anyone tell me how to set the options, such as scroll, for this plugin. I tried something like this but it didn't work:

$('.sample').uscrollbar({
    scroll: horizontal,
});

Anyone have any ideas? Thanks

Upvotes: 0

Views: 64

Answers (1)

zerkms
zerkms

Reputation: 255005

$('.sample').uscrollbar({
    scroll: 'horizontal'
});
  1. It's a string - so enclose it in quotes
  2. Don't add , after the last object's property

Upvotes: 4

Related Questions