You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to make a simple custom validation on a select. The select needs to have a value selected when another textbox is entered otherwise it need not validate. This is my HTML <select id="selectid" class="validate[funcCall[validateSelect]]"></select>
Here is my method function validateSelect(field, rules, i, options) { if ($("#textboxid").val().length > 0 && !($(selectid).val() > 0)) $("#selectid").validationEngine('showPrompt', 'Error Message', 'error', 'topRight', true); }
This triggers the validation and the message appears but it disappears immediately. I have not set any fade outs. Appreciate any help.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to make a simple custom validation on a select. The select needs to have a value selected when another textbox is entered otherwise it need not validate. This is my HTML
<select id="selectid" class="validate[funcCall[validateSelect]]"></select>
Here is my method
function validateSelect(field, rules, i, options) { if ($("#textboxid").val().length > 0 && !($(selectid).val() > 0)) $("#selectid").validationEngine('showPrompt', 'Error Message', 'error', 'topRight', true); }
This triggers the validation and the message appears but it disappears immediately. I have not set any fade outs. Appreciate any help.
The text was updated successfully, but these errors were encountered: