Dynamically Add/Remove Form Elements

Dynamically Add/Remove Form Elements


I'm creating a form that needs to be able to dynamically add form
fields to an existing form by the click of a button. I found this
example
http://mohdshaiful.wordpress.com/2007/05/31/form-elements-generation-using-jquery/
It has the exact functionality I need, but the catch is that it does
not support the latest version of the JQuery UI. Did some searching
and found a few plugins that might help.
Clonefield, Form Field Cardbon Copy, and XClone seem to do what I
need , but I'd really like to write something simple like the first
example. I'm not knowledgeable enough with JQuery yet to be able to
rewrite it so I'm really hoping to get any type of advice.
Thank you in advanced guys.