老师,我点击添加附件之后,没有任何反应,浏览器底部出现一条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();
});
});