Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to empty an element in javascript

function clearBox(elementID)
{
    document.getElementById(elementID).innerHTML = "";
}
//seems like there is no built in funciton's but in jquery 
$(element).empty();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #empty #element #javascript
ADD COMMENT
Topic
Name
8+9 =