javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');$("#yourDiv").html(""); // jQuery
Also in JavaScript:
- $(...).autocomplete is not a function
- new function javascript
- javascript default parameters
- or operator in javascript
- unable to add class in jsx
- react class component
- how get checkbox if checked in jquery
- nested array of object shows as object in console log output js
- delete session javascript
- javascript substring vs substr
- how to push array
- js split string
- ERROR in ./node_modules/tns-core-modules/ui/core/view/view.js Module not found: Error: Can't resolve '@nativescript/core/ui/core/view/view' in '/home/deepali/projects/supersquad-client/node_modules/tns-core-modules/ui/core/view'
- pyramid js
- getter and setters in js
- array every javascript
- js opposite of preventdefault
- getting value from radio button javascript
- pick random string from array javascript
- javascript use variable regex
- closure in javascript
- how to set data attribute in js using setattribute
- rimraf node.js
- javascript find matching elements in two arrays