I am trying to pass a value to a static HTML page. jQuery finds the value in the table, but how do I pass it to the next page
$('.gobutton').bind('click', function(){
var value = $(this).closest('tr').find('td')[0].innerHTML
var forward = window.location.replace('{% url 'example' %}');
});
I tried using sessionStorage.setItem("user_val",value)
but I cant seem to recover it on that view in any way.
$.post('{% url 'example' %}', {"user_val":value})
method doesn't load the html page, but passes the value.