I need to populate an array with javascript everytime I hit a button.
Eg.: if array is {[10,2,5]} and I hit the button again it should be {[10,2,5],[6,3,4]}
Q: This could be done? Could you give me a start point?
$('#button').click(function() {
//populating array keeping old data everytime user push button.
}
<form id="myForm">
//data that ill go to array
<input type="button" id="button" value="ok">
</form>
[[10,2,5],[6,3,4]]:)