I have this code:
var myArray = new Array();
var counter = 0;
function addElementToForm(value){
counter ++;
if (counter < 10)
{
$("#cheese").append(value + '<input type="number" value="0"><br />');
myArray.push(counter + value);
}
};
I have an ASP.NET form on the same page, in the same action of the sumbit button for the form, I want to be able to access myArray from the codefile as well!!