-1

Lets say I have a form field. Also I can dynamically add more fields, can I swap them by clicking on a link or button (up and down) using JS or jQuery?

Colin Brock
  • 21,267
  • 9
  • 46
  • 61
dojo
  • 453
  • 1
  • 10
  • 24

2 Answers2

2

The following functions that can help in adding elements: .append() to add after an element, .prepend() to add before an element.

For swapping elements there's already a post here.

Community
  • 1
  • 1
Candide
  • 30,469
  • 8
  • 53
  • 60
0

Here's an old-school approach (JS): http://www.nuff-respec.com/external/javascriptgui.html

PHearst
  • 751
  • 6
  • 29