- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Novawin
Hi
Look at the picture below.
Ok, I give you some example. If the user select 5 hours, then the total cost should be $100. But if the user select to 3 hours later, then it should be $60 ($20 * 3) as $20 is default as per hour.
Here is my incompleted and sample code
You can notice that the Input text for Total Cost is disabled. The calculation has to be done by JavaScript so the user can't directly edit it before the form can be submitted.
Anyway, I am not sure about how to code it correctly as whenever I changed the option from DropDown List, for e.g. when I selected 7 hours, then $20 became $140. However, when I selected 2 hours, it became $280 ($40 was supposed to be displayed instead of $280). I am not sure about implementing the correct code for JavaScript. Anyone who can help with this? Thanks
It's very simple one. :rolleyes:
Link to comment
https://www.neowin.net/forum/topic/516095-javascript-showing-amount-based-on-rate/Share on other sites
5 answers to this question
Recommended Posts