In forms, how do I set an un-selectable default description in a drop-down menu? For e.g. if it is a drop-down for States, 'Select a State' the default option should be un-selectable.
Question
Question
Set an un-selectable default description in a drop-down menu
asked on August 27, 2018
0
0
Answer
SELECTED ANSWER
replied on August 27, 2018
•
Show version history
The following sample Javascript can do this.
$(document).ready(function () { $('#Field93 option[value="choice 1"]').prop('disabled', true); });
You'll need the ID of your field (in the example below, it's Field93) and the value of your option, which you can find using your browser's inspection tool:
1
0
Replies
You are not allowed to reply in this post.
You are not allowed to follow up in this post.