Answers for "javascript clear div"

5

javascript clear div

//using javascript
document.getElementById(elementID).innerHTML = "";

//using JQuery
$('#elementID').html('');
Posted by: Guest on June-11-2020
0

clear a div

$("#yourDiv").html(""); // jQuery
Posted by: Guest on July-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language