en.javascript.info/2-ui/1-document/9-attributes-and-properties/1-get-user-attribute/task.md
Ilya Kantor 7019d1470d up
2017-02-23 19:03:14 +03:00

315 B

importance: 5


Get the attribute

Write the code to select the element with data-widget-name attribute from the document and to read its value.

<!DOCTYLE HTML>
<html>
<body>

  <div data-widget-name="menu">Choose the genre</div>

  <script>
    /* your code */
  </script>
</body>
</html>