Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id javascript

async function test (){
  document.body.innerHTML = await "<foo id='successGetID'>Hello Wolrd</foo>";
	var init = await document.getElementsByTagName("foo")[0].id;
	alert( init );
}
test();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #id #javascript
ADD COMMENT
Topic
Name
8+7 =