언어 설정

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.

 

 

 

 

 

Responses

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();