This is a usecase for slider.
JSControlTags.Slider
Optionnal parameters
sliderValue :
setDisabled(true/false) :
Click here to disabled slider and textBox associated to slider.