Fix incorrect selector in text-inputs function