Javascript

From LemonWiki共筆
Revision as of 12:28, 29 January 2013 by Planetoid (talk | contribs) (Created page with "Javascript approaches to do the same task get the document by id * <nowiki>document.getElementById('abcId')</nowiki> * alternative: jQuery attr(): <nowiki>$("selector").attr("id...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Javascript approaches to do the same task

get the document by id

  • document.getElementById('abcId')
  • alternative: jQuery attr(): $("selector").attr("id");[1] and go to the first step

references