var keyword are therefore not preserved between executions. To declare a global variable you should set it as an attribute of the global object (
Use the function
log(variable) to write values to the log at the bottom of this document. Click “Clear Log” to remove the logged values. This will not remove error messages. Previous error messages are removed whenever you click “Execute”. If there is an error message after you clicked “Execute” it was caused by your current code.
tags(tagName) are shortcuts for
id() can also be used with multiple arguments. It will then return an associative array containing the elements.
Click “Edit HTML Code” to test HTML code fragments.