jQuery Dynamically focus on the first INPUT or Textarea April 11, 2024 by Tarik This should do it I think $("#formId input:text, #formId textarea").first().focus();