title: Instascan, How to open input content in another page using javascript
body: <p>I'm new in this but I'm learning how to use Javascript/PHP. I'm trying to scan a QR code and pass the content to another PHP page. I'm using form/input field with a button submit, using PHP 'GET' to get the data content, and it works, but is not what I want to do, because I need to avoid the 'button submit', I'm trying to use jQuery to submit the form when the QR is scanned , but it doesn't work, this is my code:</p>
  
  <pre><code>    &lt;section class="scans"&gt;
        &lt;h2&gt;Scans&lt;/h2&gt;
        &lt;ul v-if="scans.length === 0"&gt;
          &lt;li class="empty"&gt;Ningun escaneo todavia&lt;/li&gt;
        &lt;/ul&gt;                
  
        &lt;transition-group name="scans" tag="ul"&gt;
          &lt;li v-for="scan in scans" :key="scan.date" :title="scan.content"&gt;{{ scan.content }}
             &lt;form id="myform" action="empleados.php" method="get"&gt;
              &lt;input type="hidden" name="qr" :key="scan.date" :value="scan.content" /&gt;
               &lt;input class="btn btn-primary" type="submit" value="Registrar Acceso/Salida"/&gt;
  $(function() { $("#myform").submit(); });
            &lt;/form&gt;
          &lt;/li&gt;
        &lt;/transition-group&gt;
      &lt;/section&gt;
    &lt;/div&gt;
    &lt;div class="preview-container"&gt;
      &lt;video id="preview"&gt;&lt;/video&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>This is the PHP page <code>empleados.php</code> and the code to GET the content of the scan:</p>
  
  <pre><code> &lt;?php  
      $info_qr=$_GET['qr'];
  </code></pre>