Search
 
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
Name
3+7 =