Trying to validate a select box field using the below code
if ($('#micolabel').val() > 0)
{
saveButton.evolutionValidation('addField', '#micolabel',
{
required: true,
messages: { required: context.subjectRequiredText }
},
'#' + context.wrapperId + ' .field-item.post-label .field-item-validation'
);
}
for
<li class="field-item post-label">
<label for="$core_v2_widget.UniqueId('Labels')" class="field-item-name">$core_v2_language.GetResource('CreateEditPost_Labels')</label>
<span class="field-item-input">
<select name="" id="micolabel">
</select>
</span>
<span class="field-item-validation" style="display: none;"></span>
</li>
But no luck. Any suggestions?
Also, how to validate the checkboxes ?
added checkbox validation
[edited by: Satish Kumar Polampalli at 12:43 PM (GMT 0) on Tue, Feb 2 2021]