I have a bunch of input elements which calls a function when clicked. They pass along a bunch of parameters with information about what was clicked.
Like so:
onClick="updateCart('product_id', 'product_name', 'product_price');"
Now I want to create a function which take these parameters and put them in an array.
var updateCart = function (product_type, product_id, cost_model_id, product_name, subscription_campaign, startup_campaign) {
this.product_row = [];
};
How do I do this?
argumentsvariable.