I have a long form with many buttons and inputs inside it. here is an example:
<form>
<p>#</p>
<input type="button" value="Inputs" />
<input type="text" value="" />
</form>
I want I do not want to clone it because the amount of input fields will be expanded and altered. I am thinking of using the ‘.after()’ function but there are alot of excape strings i have to do.
Is there a way to just call another function and have this returned for legibility sake?
I’m a touch perplexed why you want to avoid clone. if you build the object to be cloned outside of the form and inside a div with style=”display:none”, and then clone when necessary and move the cloned object into the form with something like insertafter(), you shouldn’t see any interference with anything else you’re doing.