Answer the question
In order to leave comments, you need to log in
Where to store empty forms to include in DOM?
I have a form with something like this:
<div class="grid_12">
<label>1</label>
<div class="grid_4">
<div class="upload_image">
<input type="file" name="fileUpload" id="fileUpload" class="fileUpload" />
<div class="upimtx">
<p><i class="icon-plus"></i></p>
<p>Картинка</p>
</div>
</div>
</div>
<div class="grid_8 pl_10">
<textarea name="text[]"></textarea>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Use templates .
It is not proper to call a form what is not a form.
If the form contains critical data, then it is better to append it from js, and exclude it from the markup. So that when JavaScript is turned off, it is not displayed. And if the form is rarely used, then it can also be requested via ajax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question