Steve February 2016

How do I add a select button to this list please?

How do I change this list from a drop down list that automatically changes to the URL in the drop down field, to a drop down list where the user has to select a green "select" button?

Thank you, Steve.

<select name="cars" id="dynamic_select">
  <option value="">Borrowing Power Calculator</option>
  <option value="">Loan Repayment Calculator</option>
  <option value="">Lump Sum Repayment Calculator</option>
  <option value="">Extra Repayment Calculator</option>
  <option value="">Budget Planner</option>
  <option value="">Loan Comparison Calculator</option>
  <option value="">How Long to Repay Calculator</option>
  <option value="">Split Loan Calculator</option>
  <option value="">Property Selling Cost Calculator</option>
  <option value="">Property Buying Cost Calculator</option>
  <option value="        


jiff February 2016

Check this out:

<select name="cars" id="dynamic_select">
  <option value=""></option>
  <option value=""></option>


  $('#dynamic_select').on('change', function () {
      var url = $(this).val();
        window.location = url; 


 $('#Submit').on('click', function () {
      var url = $('#dynamic_select').val();
        window.location = url;
        alert(url); // remove this line later
<script src=""></script>
<select name="cars" id="dynamic_select">
  <option value=""></option>
  <option value=""></option>
<input id="Submit" value="Go" type="submit"/>

Post Status

Asked in February 2016
Viewed 3,910 times
Voted 8
Answered 1 times


Leave an answer