Datalist extends Element

The API model used to edit the Datalist.

Methods

remove()

Removes the Element itself.

var datalist = editor.getAPIModelById('id');
datalist.remove();

replace(html)

Replaces the element itself with the HTML String passed as an argument.

var datalist = editor.getAPIModelById('animals');
datalist.replace("<datalist id='animals'><option value='Dog'><option value='Cat'><option value='Chick'></datalist>");