title: cant use HTML ID in my node.js file electron app with electron-db
body: <p>hello im noob here practicing backend
  im try to build simple windwos app using electron and electron-db (<a href="https://www.npmjs.com/package/electron-db" rel="nofollow noreferrer">https://www.npmjs.com/package/electron-db</a>)</p>
  <p>but when im trying to save user input in to db row but i cant use input ID as value in insert query</p>
  <p>my HTML</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const db = require("electron-db");
  const { app, BrowserWindow } = require("electron");
  const mydb = require("./mydb.js");
  
  // db.createTable("medicine", (succ, msg) =&gt; {
  //   // succ - boolean, tells if the call is successful
  //   if (succ) {
  //     console.log(msg);
  //   } else {
  //     console.log("An error has occured. " + msg);
  //   }
  // });
  
  let obj = new Object();
  
  obj.name = "Alexius Academia";
  obj.property = "Paco, Botolan, Zambales";
  
  if (db.valid("medicine")) {
    db.insertTableContent("medicine", obj, (succ, msg) =&gt; {
      // succ - boolean, tells if the call is successful
      console.log("Success: " + succ);
      console.log("Message: " + msg);
    });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;meta charset="UTF-8" /&gt;
    &lt;title&gt;Hello World!&lt;/title&gt;
    &lt;link rel="stylesheet" href="index.css" /&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;h1&gt;form&lt;/h1&gt;
    &lt;form id="contact-form"&gt;
      &lt;label for="name"&gt;Name&lt;/label&gt;&lt;br&gt;
      &lt;input type="text" name="name" id="name"&gt;
      &lt;br&gt;&lt;br&gt;
      &lt;label for="property"&gt;Porperty&lt;/label&gt;&lt;br&gt;
      &lt;input type="text" name="property" id="property"&gt;
      &lt;br&gt;&lt;br&gt;&lt;br&gt;
      &lt;input type="submit" id="submit"&gt;
    &lt;/form&gt;
    &lt;script&gt;
      let mim = assad;
    document.getElementById("submit").addEventListener("click", function (event) {
        event.preventDefault();
        let name = document.getElementById("name").value;
        let property = document.getElementById("property").value;
  
        console.log(name);
        console.log(property);
        document.getElementById("contact-form").reset();
      });
    &lt;/script&gt;
    &lt;script src="mydb.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>