Liste déroulante pour les unités (convertDistance)
This commit is contained in:
parent
ae77f24fc8
commit
694bed6d59
@ -106,7 +106,7 @@ $(function () {
|
||||
$( "#submitConvertDistance" ).click(function()
|
||||
{
|
||||
let firstValueEntered = $('#firstValue').val();
|
||||
let secondValueEntered = $('#secondValue').val();
|
||||
let secondValueEntered = $("#secondValue option:selected").text();
|
||||
|
||||
if(isEmptyValue(firstValueEntered) || isEmptyValue(secondValueEntered))
|
||||
{
|
||||
|
@ -12,8 +12,23 @@
|
||||
<label for="firstValue">Entrez la distance que vous voulez convertir :</label>
|
||||
<input name="firstValue" type="text" id="firstValue" placeholder="(e.g : 50cm)" class="form-control">
|
||||
<br>
|
||||
<label for="secondValue">Entrez l'unité que vous voulez avoir après conversion :</label>
|
||||
<input name="secondValue" type="text" id="secondValue" placeholder="(e.g : km)" class="form-control">
|
||||
<label for="secondValue">Choisissez l'unité que vous voulez avoir après conversion :</label> <br>
|
||||
<select id="secondValue">
|
||||
<option value="pm">pm</option>
|
||||
<option value="nm">nm</option>
|
||||
<option value="µm">µm</option>
|
||||
<option value="mm">mm</option>
|
||||
<option value="cm">cm</option>
|
||||
<option value="dm">dm</option>
|
||||
<option value="m">m</option>
|
||||
<option value="dam">dam</option>
|
||||
<option value="hm">hm</option>
|
||||
<option value="km">km</option>
|
||||
<option value="Mm">Mm</option>
|
||||
<option value="Gm">Gm</option>
|
||||
<option value="Tm">Tm</option>
|
||||
</select>
|
||||
<!-- <input name="secondValue" type="text" id="secondValue" placeholder="(e.g : km)" class="form-control"> -->
|
||||
<br>
|
||||
<div class="form-row text-center">
|
||||
<div class="col-12">
|
||||
|
Reference in New Issue
Block a user