So I have one input field that needs to pop up in another place when the user changes a tab and presses a button,
but I figured tossing the div around would be too much hassle,
so is it instead possible to make two input fields but have them display the same input entered by the user?
Or is there an easier way?
Try this. Of course, make sure it is on DOM
.ready()..blur()to run the code when the user leaves theinput1..val()to set the value ofinput2to thethis.valueofinput1.If you need to work the reverse direction as well, just assign another handler, reversing the inputs.
EDIT: To deal with multiple inputs, give them all the same class, then use paired IDs.
Like this:
Example: http://jsfiddle.net/m3q4V/
js: