title: Replace prompt and prevent selection
body: <p>I need help in my code here please.
  i write a function that select item from selector and on the change of  it a function will run.
  I face 2 problems here ,firstly i want to change prompt with other widget in Js or Jquery without using any HTML,because prompt is so silly and if the user prevent alerts this will be a big problem.
  The second problem that i have a condition that if the string coming from prompt is not what i  want then it shouldn't select the other item and stay on the first 1.
  Here is my JS code : </p>
  
  <pre><code>self.$('#cashier-select')
                  .change(function () {
                      new instance.web.Model("res.users").call('get_pincode', [this.value]).done(
                          function (results) {
                              var person = prompt("Please enter your pin code", "");
                              if (person == results) {
                                  var id = this.value;
                                  self.cashier_change(id);
                              }
                              else {
                                  alert("In Vaild noob");
                                  self.cashier_change(globalCashier);
                              }
                              console.log("person " + results);
                          });
                  });
  
  cashier_change: function (id) {
              globalCashier = id;
              new instance.web.Model("res.users").call('get_pincode', [id]).done(
                  function (results) {
  
                      console.log(results);
                  });
              var name = $('select#cashier-select&gt;option[value="' + globalCashier + '"]').text();
              $('#pay-screen-cashier-name').html(name);
              $('.username').text(name);
              if (name != '') {
                  $('.gotopay-button').removeAttr('disabled');
              } else {
                  $('.gotopay-button').attr('disabled', 'disabled');
              }
          },
  </code></pre>
  
  <p><strong>Note i create the selector using Jquery i didn't use any HTML :)</strong> </p>
  
  <p>Thanks in advance.</p>