title: How to use jquery in node js
body: <p>How to use jquery in node js. Please Help me 
  I'm using this code</p>
  
  <pre><code> const jsdom = require("jsdom");
  const { JSDOM } = jsdom;
  const { window } = new JSDOM('&lt;!DOCTYPE html&gt;');
  const $ = require('jquery')(window);
  var connection = require('./database');
  connection.query(
   "SELECT * FROM cr_state",
    function(error, results, fields) {
      if (error) throw error;
      $('#state').html('&lt;option value="1"&gt;test&lt;/option&gt;')
    }
  );
  </code></pre>
  
  <p>But this code is  not working.How to use jquery?</p>