Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showprompt message disappearing on select #941

Open
Niranjan-KC opened this issue Feb 10, 2017 · 0 comments
Open

Showprompt message disappearing on select #941

Niranjan-KC opened this issue Feb 10, 2017 · 0 comments

Comments

@Niranjan-KC
Copy link

Niranjan-KC commented Feb 10, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant