Hello,
Often I have a form that has these values:
RadTextBox
RadNumericTextBox
RadDatePicker
RadComboBox
RadMaskedTextBox
I often use a CustomValidator control to validate the form to ensure at least one value has been provided in the form. Rather than write code to check each an every control to see if it has a value, is there one JQuery condition I can write to check to see if any of the controls have a value? I tried using a CSS class to identify each control, and then target that control by doing something like:
$("#wrapper").find(".TelerikControl[value != null && value != '']").length > 0
To determine if there is any value present, but this doesn't quite work. Can anyone share if they did this and how?
Thanks.
Often I have a form that has these values:
RadTextBox
RadNumericTextBox
RadDatePicker
RadComboBox
RadMaskedTextBox
I often use a CustomValidator control to validate the form to ensure at least one value has been provided in the form. Rather than write code to check each an every control to see if it has a value, is there one JQuery condition I can write to check to see if any of the controls have a value? I tried using a CSS class to identify each control, and then target that control by doing something like:
$("#wrapper").find(".TelerikControl[value != null && value != '']").length > 0
To determine if there is any value present, but this doesn't quite work. Can anyone share if they did this and how?
Thanks.