How can I create with jQuery a Fluid element, like:
<f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>
I tried to write something like:
var input = <f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>;
$(div).append(input);
But it will render litteraly the content of var input
.
In other words.
What I get now wit my jQuery:
<f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>
What I want:
<input type="file" name="tx_form_formframework[application][fileupload]">