auto select generated HTML on textfield click