【发布时间】:2018-01-11 11:31:04
【问题描述】:
如何使用 jQuery 创建 Fluid 元素,例如:
<f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>
我试着写这样的东西:
var input = <f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>;
$(div).append(input);
但它会litteraly渲染 var input 的内容。
换句话说。
我现在用我的 jQuery 得到了什么:
<f:form.upload property="{something}" additionalAttributes="{form:someProperty(element: element, property: 'myProperty'}"></f:form.upload>
我想要什么:
<input type="file" name="tx_form_formframework[application][fileupload]">
【问题讨论】:
-
感谢您的回复,但这并不是我想要的。
标签: javascript jquery html typo3 fluid