How to select form elements with jQuery

preview_player
Показать описание
Various different ways to select form elements using jQuery. This video will be a nice primer to a later video where we will cover form validation.

Рекомендации по теме
Комментарии
Автор

The last code snippet to validate firstName needs correction. If you use $('input[name=firstName]'), this returns the HTML element which is not empty any way. The code works fine if this is used:

GaneshKumar-lexk
visit shbcf.ru