this is my javascript code
$('a').click(function() {
ty = $(this).index();
de = document.getElementsByTagName('klw')[ty].innerHTML;
alert("this is " + de);
});
want to send "de" data from $('a') to the other method that is
function jill() {
alert("hi" + de);
document.location.href = "openmessage";
};
openmessage
is the name of servlet. And from here to the servlet and how to print it on the servlet