I have a template file and i want to use url tag in my template file.
Html Tag <input type="text" id="test_id" value="12" />
The url is something like this
url(r'^check/(?P<code>[a-zA-Z\d]+)/(?P<test_value>[a-zA-Z\d]+)/$',
'test_code',
name='test_code'
),
template file with javascript code in it.
`var value1 = $('#test_id').val()`;
`var value2 = $('#test_id').val()`;
'{% url "test_code" code=value1 test_value=value2 %}'
You can see i have use the url tag and i am not able to set the value1 and value2 from the html tags values. Is there a way that i can pass the html tag values into keyword arguments of the url tag.