Could anyone please tell me how to get javascript variable value in Spring MVC Controller.
var countrySelection = "Country Selection List:\n\n";
for (var i = 0; i < frm.selectedCountryItems.length; i++)
if (frm.selectedCountryItems[i].checked){
countrySelection = countrySelection + frm.selectedCountryItems[i].value + "\n";
}
alert(countrySelection);
I want to pass the value countrySelection to controller