change input approach
demo working