我正在使用jQuery进行下拉验证。我希望用户从下拉菜单中至少选择一个值,但这对我不起作用。
<select name="skills[]" multiple="multiple" class="3cols actives">
<option value="Baker">Bakers</option>
<option value="Barista">Barista</option>
<option value="Bartender">Bartender</option>
</select>
(function($, W, D) {
var JQUERY4U = {};
JQUERY4U.UTIL = {
setupFormValidation: function() {
//form validation rules
$("#myForm").validate({
rules: {
name: "required",
url: {
required: true,
url: true
},
skills[]: {
required: true,
},