i have drop down list which filling from custome table but i want to put -select- as initial value also that when in dropdown not selected any value just showing -select- at that time validation required page cannot save invalid option
Adjust you SQL that gets options for drop down from custom table to look like this:
select null as itemId, 'select' as ItemName union all select itemID, ItemName from customTbl
and mark the field as required
Please, sign in to be able to submit a new answer.