title: Enable button when two inputs are the same
body: <p>I have two passwords input, i want my validate button to be clickable when the two inputs are the same.</p>
  
  <p>reset.pug</p>
  
  <pre><code>block content
      div#content.center-align
          p
              span#main.bold=trad.mainTitle
              br     
          input#pass(type='password',placeholder='' + trad.textplaceholder)
          input#pass(type='password',placeholder='' + trad.validpass)
          button#validate(value=token) #{trad.button}
  </code></pre>
  
  <p>this is my ajax function </p>
  
  <pre><code>$('#validate').bind( 'click', function(e) {
      let token = e.target.value
      // let pass1 =  $('#pass1').val()
      let pass = $('#pass').val()
      if (pass !== '') {
          $.post('/reset-password', {'pass': pass, 'token': token}, function (res) {
              console.log(res)
              if (res.err) {
                  $('#hiddenErr').removeClass('hide')
              } else {
                  $('#hiddenSuccess').removeClass('hide')
                  setTimeout(function () {
                      window.location = '/'
                  }, 10000)
              }
          })
      } else {
          console.log('wrong password')
      }
  })
  </code></pre>