How to validate SelectMenu using Validate plugin?
Hi there
I'm having a problem to validate the SelectMenu using Validate plugin (scripts/jquery.validate.js) if there is a blank.
The selectmenu is dynamically created:
- $('#zone_ddl').append('<option>Select Zone</option>');
- $.each(result, function(i, row) {
- $('#zone_ddl').append('<option value=' + row.zoneid + '>' + row.zonename + '</option>');
- //zonelistoptions.append($("<option />").val(row.zoneid).text(row.zonename));
- });
I believe this something to do with the value is wrap in <span class="required">Select Zone</span>
How do I validate this then?
Thanks