0

Suddenly I am in doubt, how do you have a predefined text in a form, but the text cannot be chosen. More like a text there is defining the subject on the form.

I have this short form here.

<div class="form-group">
  <label class="sr-only" for="cars">H</label>
  <select id="cars" name="cars" class="form-control"  required>
     <option>Cars</option>
     <option>Lamborghini</option>
     <option>Volvo</option>
     <option>Toyota</option>
     <option>Chervolet</option>
  </select>
</div>

So the main point is that cars should be in the form field but we should not be able to choose it. Any one knows how to do that?

Vince Bowdren
  • 8,326
  • 3
  • 31
  • 56
McDuck4
  • 662
  • 1
  • 10
  • 33
  • http://stackoverflow.com/questions/368813/html-form-readonly-select-tag-input aaaaaand http://www.w3schools.com/tags/att_option_selected.asp – Ephi Aug 19 '16 at 08:14

1 Answers1