/    Sign up×
Community /Pin to ProfileBookmark

how to duplicate form elements

Hi,

I wanted to build an interface for building dynamic queries. The interface will have few select elements which can be repeated many times. How do I duplicate these form elements ?

Thanks,
Reddy.

[upl-file uuid=888962c4-76bc-4538-b438-e9447ffd051b size=4kB]adhoc2.txt[/upl-file]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 30.2003 — You want to duplicate, or "clone" form elements? Or do you just want to add/delete/rename/replace options in a <select> dropdown menu? http://jona.t35.com:8080/experiments/scott_createElem.html
Copy linkTweet thisAlerts:
@reddy12authorApr 30.2003 — Hi Jona,

Thank you for looking at my problem. If user click on the ADD button I want to add same select boxes (Category,Sub category, filed, op, value text box ) in the next row with the same options in every list box and this will be reapeated as many times as users wish.

I could not get to see your example. Would you upload it as txt file. It seems my network is not allowing any other ports in url.

Thanks,

Reddy.
×

Success!

Help @reddy12 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...