I am using a button on my Django template, After click on the button it should open a link offering by reverse url( template tags ). I tried with the following code but it didn\’t work
<input type= \"button\" style=\"float: right;\" value=\"Next Graph\" onClick=\"javascript:location.href = \'reverse(graph_view)\';\"></input>
I know that some thing is wrong with the above syntax. What will be the right one?
PS: I don\’t want to use any external library





Rating:
The post javascript – How to user Django reverse URL with java script variable? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-how-to-user-django-reverse-url-with-java-script-variable.html
No comments:
Post a Comment