move input text update to function
move input text update to function

Linjith/bootstrap-daterangepicker,bilaliqbalr/bootstrap-daterangepicker-comparison,Linjith/bootstrap-daterangepicker,bilaliqbalr/bootstrap-daterangepicker-comparison