I want to make first option in dropdown to display as a placeholder

you can use

require_from_group:

function of jQuery validation.

for example use same class for your both input fields.

$( “#form” ).validate({

rules: {

mobileno: {

  require_from_group: [1, ".phone1"]
},
homeno: {
  require_from_group: [1, ".phone1"]
}

}

});

<input type=”text” class=”phone1″ id=”mobileno” name=”mobileNo” />

<input type=”text” class=”phone1″ id=”homeno” name=”homeNo” />

Hope this will help you out.

Leave a Comment