I am working with numerous input elements that trigger a function when clicked, passing along various parameters containing information about the click event.
For example:
onClick="updateCart('product_id', 'product_name', 'product_price');"
My goal now is to create a function that will receive these parameters and store them in an array.
var updateCart = function (product_type, product_id, cost_model_id, product_name, subscription_campaign, startup_campaign) {
this.product_row = [];
};
How can I achieve this?