file input 点击没反应_点击添加附件没反应

老师,我点击添加附件之后,没有任何反应,浏览器底部出现一条javascript:void(0),并不出现文件选择框,求解<?php

require_once '../include.php';

checkLogined();

$rows = getAllCate();

//print_r($rows);

if(!$rows){

alertMes("没有相应分类,请先添加","addCate.php");

}

?>

html>

-.-

KindEditor.ready(function(K) {

window.editor = K.create('#editor_id');

});

$(document).ready(function(){

$("#selectFileBtn").click(function(){

$fileField = $('');

$fileField.hide();

$("#attachList").append($fileField);

$fileField.trigger("click");

$fileField.change(function(){

$path = $(this).val();

$filename = $path.substring($path.lastIndexOf("\\")+1);

$attachItem = $('

a.gif
删除
');

$attachItem.find(".left").html($filename);

$("#attachList").append($attachItem);

});

});

$("#attachList>.attachItem").find('a').live('click',function(obj,i){

$(this).parents('.attachItem').prev('input').remove();

$(this).parents('.attachItem').remove();

});

});

添加商品

商品名称
商品分类

"><?php  echo $row['cName'];?>

商品货号
商品数量
商品市场价
商品慕课价
商品描述
商品图像

添加附件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值