In my page, i have no.of check boxes, while load the page, i am collecting some of values and pushing to an array called sendStatus1, again i am assign the value to other variable called submitView,
the reason why i assign, i would like to check, if the both array same or different, if both are different i will go for post else i will not.
but as a dynamic variable, each time the user click on the checkbox, both array are updating, i unable to see any different.
How to find an array is different from while it was loaded status..?
my try:
submitView = sendStatus1; //onload i do.
var submitStatus = function(){
var submitButton = $("span.submit").find("button[type='button']");
console.log(submitView, sendStatus1); //but both are same always..
}
How can i store the sendStatus1 not updatable on click of checkbox? How to come up with this issue.. any one help me please?