Validate combobox with jquery easyui

Validate combobox with jquery easyui

In my page, has two plugins: jquery validate and jquery easyui .. I use jQuery Validate to validate the datas inputs in a form.. And I use jQuery EasyUI to customize a combobox, allowing to search datas in combobox.

So, I put the Validate plugin:

  1. $("#form1").validate({ rules:{ filename:{ required: true, minlength: 3 }, leia:{ required: true } } });

That's ok! Is's work! But when I put the easyUI plugin, and set class in combobox 'leia' the validation of 'leia' didn't work more.

  1. <form id="form1" action="" method="post"> <div> <label>Name:</label> <input type="text" name="filename" /> </div> <div> <label>Leiame:</label> <select name="leia" class="easyui-combobox"> <option value=""></option> <option value="1">Java</option> <option value="2">C</option> <option value="3">C#</option> <option value="4">PHP</option> </select> </div> <input id="submit-go" type="submit" name="add" value="Add" /> </form>

When I take off the class in 'leia', the validation works! Can anybody help me ?

Thank you in advance