Validating dynamically created textboxes

Have an option with label like ‘Select …’ and the option value empty. Then you can apply the ‘required’ validation to the Dropdown list.

If the default option (‘Select …’) has a non-empty value, the required validation won’t give the desired result.

Example: See the demo @Code Pen There are certain validations that can’t be done locally.

Those validations that require checking with the server database.

However, You should always customize the validation error messages.

The ‘depends’ parameter takes a function that returns true or false.

Don’t leave it to the auto-generated default messages.

Explain to your user what is wrong and suggest solutions.

The function should return true if the validation is enabled.

function checks the option selected for ‘channel’ and returns true or false depending on the selection.