xxxxxxxxxx
Syntax 1 : SELECT-OPTIONS <SO_NAME> FOR <TABLE-FIELD>. "THIS PRINTS TWO INPUT FIELDS (RANGE) WITH EXTENSION TO ENTER MULTIPLE RANGES
Syntax 2 : SELECT-OPTIONS <SO_NAME> FOR <TABLE-FIELD> NO INTERVALS. "THIS PRINTS ONE INPUT FIELD WITH EXTENSION
Syntax 3 : SELECT-OPTIONS <SO_NAME> FOR <TABLE-FIELD> NO-EXTENSION. " THIS PRINTS TWO INPUT FIELDS WITH OUT ANY EXTENSION (CAN NOT ENTER MULTIPLE RANGES)
Syntax 4 : SELECT-OPTIONS <SO_NAME> FOR <TABLE-FIELD> NO INTERVALS NO-EXTENSION .THIS PRINTS ONE INPUT FIELD WITH OUT INTERVALS AND EXTENSIONS
xxxxxxxxxx
<label for="cars">Cars</label>
<select name="Cars" id="cars">
<optgroup label="SUV">
<option value="">Porsche Cayenne</option>
<option value="">Lincoln Nautilus</option>
<option value="">Mercedes-Benz GLB 2022</option>
<option value="">BMW X3 2022</option>
<option value="">Genesis GV80 2022</option>
<option value="">Mercedes-Benz GLS 2022</option>
</optgroup>
<optgroup label="Sports Car">
<option value="">Ford Mustang</option>
<option value="">Toyota GR Supra</option>
<option value="">McLaren 7205</option>
<option value="">Porsche 911</option>
<option value="">Audi R8 V10</option>
<option value="">Chevrolet Corvette Z06</option>
</optgroup>
</select>
xxxxxxxxxx
<select id="mon-menu-deroulant">
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
</select>
<script>
// Récupérer l'élément select
var selectElement = document.getElementById("mon-menu-deroulant");
// Récupérer la valeur de l'option sélectionnée
var selectedValue = selectElement.value;
</script>