title: Jquery .load for update fragment on flask\python
body: <p>I'm trying to use jquery .load in my flash application to update the div, but that does not work.</p>
  
  <p>routes.py</p>
  
  <pre><code>@app.route('/index', methods=['GET', 'POST'])
  @app.route('/', methods=['GET', 'POST'])
  def red():  
      return redirect('/index.html')
  
  @app.route('/index.html', methods=['GET', 'POST'])
  def index():
      return render_template('index.html', title='Estat')
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code> &lt;script&gt;
       function run() {
      $( "#display" ).load( "/index.html #display" );
      }
  
      setInterval(run, 1000);
      &lt;/script&gt;
  
  &lt;div id="display"&gt;&lt;h1&gt;word 2&lt;/h1&gt;&lt;/div&gt; 
  </code></pre>
  
  <p>I want each time when changing the template file in a time interval the content of the div block changes. Help me pls.</p>