title: How to run a function when input has filled in
body: <p>I'm using QuaggaJS for scanning barcodes, the barcode I return in a input field. How can I run a function when Quagga put's a barcode in my input? </p>
  
  <p>Onchange &amp; Oninput</p>
  
  <pre><code>&lt;input oninput="alert_success()" class="form-control" id="bnummer" type="text" name="Bnummer" value="" style="width: 280px" required&gt;&lt;br/&gt;
  </code></pre>
  
  <p>That I can run a function when Quagga puts a barcode in my input field</p>
  
  <p>I've now placed an alert where Quagga detect my barcode, this works fine on my PC but on my smartphone is doesn't work.....</p>
  
  <pre><code>Quagga.onDetected(function(result) {
          var code = result.codeResult.code;
  
          document.getElementById("bnummer").value = code;
  
          alert('Test');
  });
  </code></pre>