Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-01-2010
Member
 
Join Date: Dec 2009
Posts: 23
DOM elements : remove with jQuery

Hi, how are you all. I had just started to learn the Java. I don't have the basic knowledge of the Java. I would like to know about the jQuery. I would also like to know about the how can I use the jQuery to remove the DOM elements. Also I want to know how they can work in the program and how can I use them in the program. So, if anyone knows about the jQuery then reply me. I am waiting for your reply.
Reply With Quote
  #2  
Old 30-01-2010
Member
 
Join Date: May 2008
Posts: 2,383
Re: DOM elements : remove with jQuery

Hi, I think the Javascript online library which is most famous is jQuery. On the internet lot of information and articles can be available about jQuery so I feel pointless that if I can describe it again. The most good parts of jQuery library is that jQuery amazingly handles the DOM elements. So, It can be good at that I usually use it with other JavaScript libraries. I hope it is enough for you to know what is the jQuery.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 30-01-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: DOM elements : remove with jQuery

The jQuery can be a javascript library that enables you to quickly develop animations, AJAX interactions and events. You have to note that the javascript files can go with XHTML file of the same that are related with each of the section. The jQuery can be a well thought powerful Javascript library that jQuery actually uses itself to build itself. What can I say to here is that many of the methods that can be provided by the jQuery library are built internally to the jQuery architecture as plugins.

Last edited by MindSpace : 30-01-2010 at 10:19 AM.
Reply With Quote
  #4  
Old 30-01-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: DOM elements : remove with jQuery

The remove() method of the jQuery library can takes elements out of the DOM. Whenever we would like to remove the element by itself and also everything in that method, We can use the remove() method. The jQuery data and all bound events related with the elements can be removed in addition to the element itself. The syntax of the remove() method can be as follows :
.remove( [ selector ] )
Reply With Quote
  #5  
Old 30-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: DOM elements : remove with jQuery

The following program demonstrates you that All paragraphs from the DOM can be removed :
<!DOCTYPE html>
<html>
<head>
<style>p { background:black; margin:7px 0; }</style>
<script src="/scripts/jquery-1.4.js"></script>
</head>
<body>
<p>HELLO</p>
HOW ARE
<p>YOU?</p>
<button>CALL REMOVE() ON PARAGRAPH</button>
<script>
$("button").click(function () {
$("p").remove();
});
</script>
</body>
</html>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "DOM elements : remove with jQuery"
Thread Thread Starter Forum Replies Last Post
How to remove multiple elements of a vector in a loop PsychoVillan Software Development 6 27-06-2011 07:27 AM
How to Add and Remove HTML elements Dynamically In Javascript? Level8 Software Development 5 20-02-2010 06:48 PM
Remove repeated elements in an ArrayList Miles Runner Software Development 5 17-02-2010 05:26 AM
How to addclass and remove class using jquery Broot Software Development 3 21-09-2009 09:55 AM
Photoshop Elements and Premiere Elements go to version 7.0 Killen Customize Desktop 2 29-08-2008 01:17 PM


All times are GMT +5.5. The time now is 02:07 PM.