Friday, 9 August 2013

Pass an array from ajax call with data:

Pass an array from ajax call with data:

$.ajax({
url : ROOT_PATH + "/requirements/" + req_id + "/edit",
type : "get",
data : "req_info=" + req_info,
success : function(data) {
$("#Requirements_div").html(data);
$("#Requirements_div").show();
$(".new_req_link").attr("data-a",project_id);
}
});
How to pass an array using data: . I mean what if req_info is an array ?
I want to pass an array from the ajax call to the controller using the
'data' attribute.

No comments:

Post a Comment