Validate Dynamic SELECT

Validate Dynamic SELECT

Hi,

I am populating dynamic SELECT in my PHP like this:

  1. <select name="cboRating[<?php echo $mysql_row["employee_evaluation_details_id"]; ?>]" id="cboRating[<?php echo $mysql_row["employee_evaluation_details_id"]; ?>]" data-native-menu="false" required>

and in my jquery validate() I want to validate the cboRating to make sure it's required like this:

  1. cboRating: { required: true },

is it enough to sat cboRating although the name has some extra characters from employee_evaluation_details_id otherwise how to do it please?


Thanks,