DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Get element id by name
var elements = document.getElementsByName( 'yourname' ); var id = elements[0].getAttribute( 'id' );
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Get
#element
#id
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit