我在JS文件中有这个javascript代码,我需要在" Artwork"之后插入这个div。节
<div class="image-upload">
<label for="files">
<img src="ohtupload.jpg">
</label>
</div>
基本上我要做的就是用image-upload div替换files按钮。实现这一目标的最佳方式是什么?非常感谢任何帮助。谢谢!
,turnaround_time :{type:"div",title:"Turnaround Time (see <a href='#' class=opens-overlay html-id=pricing >Pricing Table</a>)"}//css:empty shows msg
,ship_name :{type:"text",class:"one-half hide-if-optional",title:"Shipping Info: Name"}//remove repeat references to "Ship" after first
,ship_company_name :{type:"text",class:"one-half hide-if-optional never-required",title:"Company Name"}
,ship_address :{type:"text",class:"one-half hide-if-optional",title:"Address"}
,ship_city :{type:"text",class:"one-half hide-if-optional",title:"City"}
,ship_state :{type:"text",class:"one-half hide-if-optional",title:"State"}
,ship_zip :{type:"text",class:"one-half hide-if-optional",title:"Zip",validate:function(val){ return (val+'').trim().match(/^[0-9]{4,}-?[0-9]+$/i)?1:0 }}
,group_4:"Artwork"
,files :{type:"file"/*,multiple:true*/, class:"dropzone",custom:function(part){
part.data("customvalue",[])
Dropzone.autoDiscover = false
答案 0 :(得分:0)
我不知道这是否是您正在寻找的内容,只需将其作为字符串值添加到属性中:
turnaround_time.htmldiv = '<div class="image-upload">
<label for="files">
<img src="ohtupload.jpg">
</label>
</div>'
或者,如果你想硬编码,只需把它作为一个属性&amp; 文件属性
之后的值