2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > file input 点击没反应_点击添加附件没反应

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

时间:2021-12-17 19:22:15

相关推荐

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();

});

});

添加商品

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。