title: EJS content editable value
body: <p>I am have currently using express and mongoDB for back end and EJS for front end. My code is below. As you can see, I have a <strong>content editable</strong> and I want to grab the value after I clicked the modify button. Right now the value is from my mongoDB, but what I want to occur is when I change the contents of the content editable and then click the modify button, I want to send a request to my database. I can figure out the back end, but all I need to figure out is how when I click the button, I can get the new value that is in contenteditable. Any hints or ideas would be very much apprecitiated.</p>
  <pre><code>        &lt;tr&gt;
            &lt;th&gt;
              &lt;div contenteditable=&quot;true&quot;&gt;
                &lt;a href=&quot;&lt;%=shortURL.full%&gt;&quot;&gt;&lt;%=shortURL.full%&gt;&lt;/a&gt;
              &lt;/div&gt;
            &lt;/th&gt;
            &lt;th&gt;
              &lt;a href=&quot;&lt;%=shortURL.short%&gt;&quot;&gt;&lt;%=shortURL.short%&gt;&lt;/a&gt;
            &lt;/th&gt;
            &lt;th&gt;
              &lt;form action=&quot;/delete&quot; method=&quot;POST&quot;&gt;
                &lt;!-- prettier-ignore --&gt;
                &lt;button type=&quot;submit&quot; name = &quot;button&quot; value = &lt;%=shortURL.short%&gt;&gt;Delete url&lt;/button&gt;
                &lt;h1&gt;&lt;/h1&gt;
              &lt;/form&gt;
            &lt;/th&gt;
            &lt;th&gt;
              &lt;form action=&quot;/delete&quot; method=&quot;POST&quot;&gt;
                &lt;!-- prettier-ignore --&gt;
                &lt;button type=&quot;submit&quot; name = &quot;modify&quot;&gt;Modify&lt;/button&gt;
                &lt;h1&gt;&lt;/h1&gt;
              &lt;/form&gt;
            &lt;/th&gt;
          &lt;/tr&gt;
  </code></pre>