ehynds/jquery-ui-multiselect-widget — Issue #185: UI Multiselect with jQuery Validate 1.9.0
Author: vdecristofaro
Created: 2011-11-18 15:36:01+00:00
State: open

Hello,
I am using the jquery validation plugin 1.9.0

I shall validate a select to have at least one element selected that is different from the default. I am trying this way:

(click to choose an email template)

Later in code I am adding elements to the select dinamically. I then try to validate the element with the following code

var $select = $currentStep.find("#cbMailTemplate");
if (!$select.valid()) {
$select.effect("highlight");
$labelError.show();
result = false;
}

I am able to validate correctly the element but unfortunately the highlight make the original select to become visible which lead to an inopportune effect. Is there any way to highlight the multiselect?

Thanks