1

I am very new to mobiscroll and trying to set the default value for mobiscroll scroller.

Here is my code:

<input type='hidden' id='test'/>

$('#test').scroller({
    theme: 'sense-ui',
    display: 'inline',
    mode: 'mixed',
    wheels: wheel,
    defaultValue:'10',
    showLabel: false,
    showInput: false
});

Can anyone help me on this. Thanks in advance.

Fabrício Matté
  • 69,329
  • 26
  • 129
  • 166
PavanBhushan
  • 106
  • 2
  • 8

1 Answers1

2
$('#test').scroller({
theme: 'sense-ui',
display: 'inline',
mode: 'mixed',
wheels: wheel,
defaultValue:'10',
showLabel: false,
showInput: false
}).scroller('setValue', 'YOUR VALUE', true);
paul-2011
  • 675
  • 10
  • 27