if you don't know the difference between Jquery remove() and empty() function , i will tell you.
for example:
<p>Hello</p>
World
<p>welcome</p>
$('p').empty();
output: <p></p> World <p></p> Execution of $("P").Empty () is the result of :
output: World
Summary:
Jquery empty() function is clear element text, but remove() function will delete all, include element itself.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.