Create <UL> and <LI> and add <LI> to <UL> element - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Ul


Create <UL> and <LI> and add <LI> to <UL> element

Demo Code

ResultView the demo in separate window

      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <div id="output"> 
      <script type="text/javascript">
var _ul = document.createElement('ul');
var _li=  document.createElement('li');

   </body>/*from ww w  .  ja va  2  s .c  o m*/

Related Tutorials