clear the input field after a value is passed with ajax