Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello, I am working on a J2EE project, the problem is I was creating a form where I have 3 camps in the first one the user have to choose a person in a list that i extract from my DB the second camp is similar the only difference is the person that the user choose shouldn't appear in the second list and finally both the person selected in the first and the second camps shouldn't appear in the list of the third camps. I asked many person they suggest me to use Jquery and javascript do you have any idea how do I code this?
Posted

1 solution

Remove the instance of a form from the DOM, that's is. You don't have to "delete" anything; the objects deleted and resources are reclaimed via garbage collection. To remove an element, use this method:
Node.removeChild() — Web APIs | MDN[^].

With jQuery, you can use these functions: DOM Removal | jQuery API Documentation[^].
See also: Manipulation | jQuery API Documentation[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900