I have a array that contains an array of 10 number in jquery named "winnerList" I am sending it to WinnerController from jquery using ajax as :
$.ajax({
url: "/demoapp/winner/winners",
type: "POST",
data: { "winnerList": winnerList },
success: function(data) {
alert("Successfully sent winnerList")
},
});
Now I am receiving it inside controller using "winners" function as:
def winners(){
print params
}
I am getting result as :
[winnerList[0][]:076, winnerList[1][]:118,winnerList[2][]:102, .....winnerList[9][]:18, action:winners, format:null, controller:winner]
But I wanted a result of only numbers not this type of structure which i could not access. Can anyone help?
winnerListin your JS code?