I want to deliver two values to the Django backend in a GET form. The two values are values[0] and values[1]. How can I modify the input tag in HTML?
$(function() {
$("#slider-range").slider({
range: true,
min: 1910,
max: 2019,
values: [1950, 2010],
slide: function(event, ui) {
$("#amount").val(ui.values[0] + "won - " + ui.values[1] + "won");
}
});
$("#amount").val($("#slider-range").slider("values", 0) + "won - " + $("#slider-range").slider("values", 1) + "won");
});
<FORM NAME="myForm" method="GET" action="{%url 'search_result'%}">
<p>
<label for="amount">won:</label>
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" aria-valuemin="">
</p>
<input type="submit" value="search" id="search_button">
</FORM>