How would I make the “Please select…” option in my drop-down menu unselectable? I am coding in this form tester for Contact Form 7 Conditional Fields. This is an example portion of my code with no conditional code for simplicity:
<label>
How far along is the borrower in acquiring the property?
The borrower… <span>*</span>
</label>
[select* property-ownership-how-far-along-is-the-borrower-in-
acquiring-the-property-the-borrower first_as_label
"Please select…"
"is still looking for a property to acquire."
"has identified the property."
"has made an offer to purchase the property."
"has the property under contract to purchase."
"already owns the property."]
I know first_as_label is supposed to do exactly what I’m complaining about, but it literally just isn’t, I am still able to select “Please select…”. I tried some JavaScript script code from something I saw in StackOverflow, but either it didn’t work or I did not implement it into my code correctly.
Albert Pace is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am new in this big community, sincerily I will put the attribute disabled on the option that you need that needs to be disabled if you are working in HTML.
Or if you are working on JS let me know because I think I have something that looks similar on what are you doing
3