1
我嘗試添加文件底部在Joomla 3.0,則後端添加元素上傳圖片
添加圖像爲此,我使用的append()jQuery的
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('imagenes'); ?></div>
<div class="controls1"><?php echo $this->form->getInput('imagenes'); ?>
<input type="button" id="boton_append_1" value="Add Imagen" />
</div>
</div>
的功能和我的jQuery的功能是這樣的
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('#boton_append_1').click(function() {
jQuery('.controls1').append(
);
});
});
</script>
但我不知道如何把要添加的元素
任何想法
*'添加文件bottom' * ...你的意思是:** 「添加文件按鈕」 **? – 2013-02-26 02:56:32
是@roXOn這樣的PHP回聲$ this-> form-> getInput('imagenes');生成一個輸入類型=「文件」底部 – user852610 2013-02-26 03:00:07
爲什麼你不嘗試jQuery('。controls1')。append('); – 2013-02-26 03:29:56