title: Passing div elements to flask
body: <p>I have a div element that will be made up partially of text and partially of form data.  I want to pass the div to flask. I know I can use request.form to get the form information on the backend.  But I am not sure how to get the elements from the div that are not apart of the form.</p>
  
  <pre><code>&lt;div id="schedule"&gt;
    &lt;form action="generate" class="grid-container" enctype="multipart/form-data"&gt;
    {% for bunk in bunks %}
      {% set outer_loop = loop %}
      &lt;div class="grid-item"&gt; {{bunk.name}} &lt;/div&gt;
        {% for _ in range(0, 7) %}
          {% if _ &lt; 3 %}
             &lt;input type="text" class="grid-item {{outer_loop.index-1}}{{_}}" name="{{outer_loop.index-1}} {{_}}"/&gt;
          {% elif _ == 3 %}
             &lt;div class="grid-item"&gt;Lunch&lt;/div&gt;
          {% elif _ &gt; 3 %}
            &lt;input type="text"   class="grid-item {{outer_loop.index-1}}{{_-1}}" name=" 
            {{outer_loop.index-1}} {{_-1}}"/&gt;
          {% endif %}
        {% endfor %}
      {% endfor %}                                                                                                                                                                                                     
    &lt;input type="submit" name="data" value="generate"/&gt;
    &lt;/form&gt;
  
    &lt;div class='activities'&gt;
      {% for activity in activities %}                                                                                                                                                                                    
      &lt;div id="{{activity.name}}" draggable="true" ondragstart=drag(event)&gt; {{ activity.name }} &lt;/div&gt;
      {% endfor %}                                                                                                                                                                                                 
    &lt;div&gt;                                                                                                                                                                                                        &lt;/div&gt;
  </code></pre>