Results for "document.getElementById()"

Tags

    • Kyle

      $id() - Shortened document.getElementById()

      Taken from https://websemantics.uk/archived/useful-javascript-functions/ "Saves repeatedly writing out document.getElementById('id'). Results are cached which speeds up repeat requests by 50%." I really like this one, credit to Mike Foskett @ websemantics.uk! 

      Tags: examples, websemantics.uk, $id(), document.getElementById()