语言

Menu
Sites
Language
JS remove() not work under Emulator
var elem = document.getElementById("myDiv");
elem.remove();

elem.remove() not work under Emulator, under Simulator all OK.

 

 

 

 

 

响应

3 回复
Lakshmi Grandhi

Hi,

I have raised a bug in JIRA, please follow it for more updates https://bugs.tizen.org/jira/browse/TDIST-616

 

Alexander AVSukhov

Hello,

Try to use following:

var element = document.getElementById("myDiv");
element.parentNode.removeChild(element);

or

$("#myDiv").remove();

Alexander AVSukhov

Correct comment:

    var element = document.getElementById("myDiv");
    element.parentNode.removeChild(element);

or

    $("#myDiv").remove();