Modifiying drop-down selection options to just one option

The web script that I’m modifying has this drop-down list code:

                           <select name="privacy" id="privacy" class="form-control">
                              <option value="0">{{LANG public}}</option>
                              <option value="1">{{LANG private}}</option>
                              <option value="2">{{LANG unlisted}}</option>

I’d like to modify it so value 2 is the default choice and then hide the whole list.
Any assistance with that is appreciated.

Add selected attribute to the option

<option value="2" selected>
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.