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 mouse is down over the button. 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" ) );
});
How can I do this in jQuery?