pass form name variable into url in django
<p>I would like to pass the <code>name</code> variable of a selected inputbox in my django template into a url without going through the django views or url.py. Is there an easy way to do this.</p>

<pre><code>&lt;div class="form-group"&gt;
    &lt;label class="col-xs-3 control-label"&gt;Chapter&lt;/label&gt;
    &lt;div class="col-xs-5 selectContainer"&gt;
      &lt;input class="form-control" type="text" name="chapter_text" value="1"&gt;&lt;/input&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I want the <code>name</code> value of the <code>input class</code> to be passed into the <code>name</code> argument of the url in the div button below</p>

<pre><code>&lt;div class="form-group"&gt;
    &lt;div class="col-xs-5 col-xs-offset-3"&gt;
      &lt;div class="btn btn-default"&gt;&lt;a href="{% url 'api:by_book' 'name' %}"&gt;Download&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>