Hi,
I want to post to another page, but I get an double xml. one with the variable and one without.
How can I fix this?
Thank you in advance!
$(document).ready(function(){
$("tr").click(function(){
$(this).addClass("selected").siblings().removeClass("selected");
});
$('.ok').on('click', function(e){
e.preventDefault();
var formAction = window.location.href = '/postnltest2';
alert($("#table tr.selected td:first").html());
$.post(formAction,
{
address: $("#table tr.selected td:first").html(),
});
});
})