I would like to pass the name 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.
<div class="form-group">
<label class="col-xs-3 control-label">Chapter</label>
<div class="col-xs-5 selectContainer">
<input class="form-control" type="text" name="chapter_text" value="1"></input>
</div>
</div>
I want the name value of the input class to be passed into the name argument of the url in the div button below
<div class="form-group">
<div class="col-xs-5 col-xs-offset-3">
<div class="btn btn-default"><a href="{% url 'api:by_book' 'name' %}">Download</a></div>
</div>
</div>