code not working neither getting any error

code not working neither getting any error

I am not getting any error neither the code is working, whats wrong in my code?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Radio button and List Check</title>
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  6. <script type="text/javascript" >
  7. $("#country").change(function() {
  8.  var country = $(this).val()
  9.  var currency = {
  10. USD: "USD",
  11. EUR: "EUR",
  12. GBP: "GBP"
  13.  }[country]
  14.  console.log(country, currency)
  15.  if (currency)
  16. $("[name=optradio][value='" + currency + "']").prop("checked", true)

  17. })
  18. </script>
  19. </head>
  20. <body>

  21. <form class="form-horizontal" action="" method="post">
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label" for="devices2">Country</label>
  24. <div class="col-sm-10">
  25. <select class="form-control" id="country">
  26. <option value="">Please select Country</option>
  27. <option value="USD">US</option>
  28. <option value="EUR">EU</option>
  29. <option value="GBP">UK</option>
  30. <option value="USD">China</option>
  31. <option value="USD">India</option>
  32. <option value="USD">Korea</option>
  33. <option value="USD">Asia</option>
  34. <option value="USD">Russia</option>
  35. </select>
  36. </div>
  37. </div>

  38. <div class="form-group">
  39. <label class="col-sm-2 control-label" for="devices1">Currency</label>
  40. <div class="col-sm-10">
  41. <label class="radio-inline">
  42. <input type="radio" name="optradio" disabled>USD</label>
  43. <label class="radio-inline">
  44.    <input type="radio" name="optradio" disabled>EUR</label>
  45. <label class="radio-inline">
  46. <input type="radio" name="optradio" disabled>GBP</label>
  47. </div>
  48. </div>
  49. </form>
  50. </body>
  51. </html>