HELP! TOTALING THE VALUE OF A QUANTITY DROPDOWN

okay so I have 2 drop downs for now, in the future I will have about 10.
I need for each quantity from the dropdowns to add up and create a total for the purchase.
The first quantity equals $75 USD
The second quantity is $85 USD

please review my current code and the website.

export function occurence_click($w) {
var y = Number ($w(“#makeupquantity”).value)*75;
var z = Number ($w(“#makeupwithlashes”).value)*85;
var x = y + z;

$w(“#personalmakeuptotal”).text = String (x);
}

PLEASE PLEASE HELP ME!

Hey,
Can you please clarify what doesn’t work on your end?

Thanks,
Tal.

Hey tal I evolved my code and It worked I needed a button to submit it and it showed the total.

No I wanted that same button to change the page. Is this possible?


$w(“#myElement”).link = “http://wix.com”;
$w(“#myElement”).target = “_blank”;

I’ve tried adding this with my id’s and url no luck can a button have to functions?