Element ID mit Namen abrufen
var elements = document.getElementsByName( 'yourname' );
var id = elements[0].getAttribute( 'id' );
Puzzled Puffin
var elements = document.getElementsByName( 'yourname' );
var id = elements[0].getAttribute( 'id' );