W3C says that id should not start with a number

Here's probably what you need.

$('#1').remove();


On Jun 11, 7:44 pm, "David .Wu" <chan1...@gmail.com> wrote:
> Can I remove div1 but div2 keep there?
>
> <div id="1">
> <div id="2"></div>
> </div>

Reply via email to