Update input when range is clicked