diff --git a/scripts/main.js b/scripts/main.js index 368ae81..812730b 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -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)) { diff --git a/views/function-views/convertDistance.php b/views/function-views/convertDistance.php index bc325ad..903338b 100644 --- a/views/function-views/convertDistance.php +++ b/views/function-views/convertDistance.php @@ -12,8 +12,23 @@
- - +
+ +