Remove the Contents of a Div using JQuery

jquery

Solution

$("#1").empty();

Also you shouldnt really start id's with a number

Problem

How to remove the contents of a Div Using JQuery. For eg. ``` <div id="1"> <label id="label1"/><br/> <input type="text" data-attr="phoneEuro" style="width: 200px;" id="input1"/> <label id="instr1"/> </div> ``` i want to remove the full content of the Div . and to add new contents to it.

Original source

Related problems