Click the button to get multiply every element in the array with a specific number.
Multiply with:
Updated array:
Click the button to get multiply every element in the array with a specific number.
Multiply with:
Updated array:
Scroll down this page
When you have scrolled 50 pixels from the top of this page, add the class "test" (yellow background color) to this paragraph. Scroll up again to remove the class.
Click the button multiple times to toggle between two class names for DIV.
Click the button to display the class names of the div element.
Click the button to add the "mystyle" class to DIV.
Note: The classList property is not supported in Internet Explorer 9 and earlier versions.
Click the button to append an item to the end of the list.
Note:
First create an LI node,
then create a Text node,
then append the Text node to the LI node.
Finally append the LI node to the list.
Select a position in the list below to change the div's position.