I have a button which is like below and a jquery which increase the size of the slider perfectly
<button id='plus' type="button">+</button>
$('#plus').click(function() {
s.slider('value', s.slider('value') + s.slider( "option", "step" ) );
});
BUT I would like to change the size up as long as the muse is down over the button. so I tried this but it didn't do the job! (it is actually acting like click event).
$('#plus').mousedown(function() {
s.slider('value', s.slider('value') + s.slider( "option", "step" ) );
});
Can you please let me know how I can do this in jQuery?