- WordPress Enqueue
- This post demonstrates the onclick event, if, alert, getElementById and changing the src property of the image.
- This post briefly discusses data types and data naming. It shows how to get input from the user. It show you getElementById, parseFloat, and isNaN (is not a number). It also mentions formatting and toFixed()
- If the user enters a non-number in either field, the result will be zero instead of NaN. NaN stands for not a number. Also, the size of the boxes are smaller. A third improvement disallows the user to enter anything in the result box.
Change HTML Content
You can try this example yourself. The web page code is shown below and is from w3schools.com.
Change HTML Attributes
Change HTML Styles (CSS)
Changing the style of an HTML element, is a variant of changing an HTML attribute.