I have a dropdown list on each cell of table row. Now what I need is dynamically add more dropdownlist on a particular cells with pressing the add button. Any code snippet to help on this? Thank you.
var element = document.createElement('h1'); element.appendChild(document.createTextNode('Create new element in DOM')); Code (markup): The example above creates an <h1> element, and then adds text to it. The end result of that operation would be this HTML: <h1>Create new element in DOM</h1> To add to cell: document.getElementById('cellID').appendChild(element); Code (markup):
Just inset a ul child node and then style it to position absolute . Trigger it on click and the job's done .