Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.
checkchange event
-checkbox.checked adds value to total amount, if same checkbox is unchecked afterwards, same value needs to be subtracted to keep the correct amount.
As PhatoseAlpha said, you can use the CheckedChanged event and you can switch between adding and subtracting the amount based on the state of the checkbox. You could also just could play it safe and recalculate the total. 🙂
omg.. thanks, im slow. I dont know why I didnt think to just add an else line to the if statement saying subtotal -= WARRANTY_PRICE_Decimal. I think I had the thought it would do both, add and subtract, if checkbox was checked
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.