How do I create an HTML element with attributes and events using JavaScript? -


i working on school project on discovering javascript , stuck element creating, know how need implement this.

create element:

var element = document.createelement('table'); 

adding attribute:

element.setattribute( "id", "table1" ); 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

Voice chat over bluetooth between Android & Python (pybluez) -

Integrate jquery-globalize into an ASP.NET Core MVC App -