Select an option when input change

Select an option when input change

I want to select an option when I insert a value into an input. Here's my HTML:
  1. <input type="text" id="point" />
  2. <select id="passed">
  3.    <option value="2"> -- Choose --</option>
  4. </select>
And here is the JS:
  1. $(document).ready(function () {
  2.     $("#point").change(function () {
  3.         var val = $(this).val();
  4.         if (val === 0 && val < 60) {
  5.             $("#passed").html("<option value='0' selected='selected'>Not passed</option>");
  6.         } else if (val >= 60 && val === 100) {
  7.             $("#passed").html("<option value='1' selected='selected'>Passed</option>");
  8.         }
  9.     });
  10. });
Please help me to achieve this.