Remove inner divs from a parent div using jquery...

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-03-30T10:04:53Z Indexed on 2010/03/30 10:13 UTC
Read the original article Hit count: 196

Filed under:
|
|

Consider my parent div is parentDiv and it contains five child divs

<div id="parentDiv">
      <div>1</div>
      <div>2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
</div>

How to empty the child elements parentDiv using jquery....

EDIT:

What is the diff between empty() and remove()? what should i use?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about div