I\'m trying to do a jquery GET and i want to send a parameter.
here\'s my function:
$(function() {
var availableProductNames;
$.get(\"manag
Try this:
$.ajax({
type: 'get',
url: 'manageproducts.do',
data: 'option=1',
success: function(data) {
availableProductNames = data.split(",");
alert(availableProductNames);
}
});
Also You have a few errors in your sample code, not sure if that was causing the error or it was just a typo upon entering the question.