click tag to fill the input field