There's no other way to select the overlay when the to input increases. The only alterbnative would be passing a class via javascript at the same time is passed to the input