【发布时间】:2010-10-01 11:51:58
【问题描述】:
$('#images_upload_add').click(function(){
$('.images_upload:last').after($('.images_upload:last').clone().find('input[type=file]').val('').end());
});
使用此代码附加文件输入不会在 firefox 中上传文件。
还有
$('#image_server_add input[type=button]').click(function(){
var select = $(this).siblings('select').find(':selected');
if(select.val()){
$('#image_server_add').before('<tr class="images_selection"><td><input type="button" value="Delete"></td><td class="main">'+select.html()+'<input type="hidden" value="'+select.html()+'" name="images_server[]"/></td></tr>');
}
})
也不会将值上传到 $_POST
我找不到任何说明为什么这在文档中不起作用,这在 IE 中有效,但在 Firefox/WebKit 中无效
为什么这些示例不能正确上传表单值?
【问题讨论】:
标签: php javascript jquery