PHPCMS新增投票主题无法添加选项的解决办法

在这个地方添加投票主题的时候点添加选项没有作用
管理地址类似于admin.php?mod=vote&file=vote&action=edit_subject&subjectid=2

点添加选项没有任何作用:

$(document).ready(function() {
$('#opt_template').hide();
$('#add_new').checkForm(1);
$('input[id^=add]').click(function(){
var n=$(this).attr('optcount');
$(this).attr({optcount:(++n)});
var sid=$(this).attr('subjectid');
var newopt=$('#opt_template').clone(true);
newopt.attr({id:'newsopt1'}).find('span').text(n+'、');
newopt.find('input[id=pic]').attr({id : 'pic'+n});
newopt.find('input[sn=99]').attr( { sn : n } );
newopt.appendTo('#newsub'+sid).show();
});
$('input[id^=dec]').click(function(){
var sid=$(this).attr('subjectid');
if($('#newsub'+sid).find('div:last').length<1) return false;
var ncount=$('input[subjectid='+sid+'][id^=add]').attr('optcount')
$('input[subjectid='+sid+'][id^=add]').attr({optcount:(ncount-1)});
//$(this).attr({optcount:(ncount-1)});
$('#newsub'+sid).find('div:last').remove();
});
//删除主题
$('#del').click(function(){
var n=$('input[tag=delsubject][checked]').length;
if(n<1){
alert(没有选中任何选项);return false;
}
if(!confirm(真的删除吗?)) return false ;
$('#action').val('delete');
return true ;
});
//更新排序
$('#listorder').click(function(){
$('#action').val('edit_subject');
this.form.submit();
});
$('input[alter]').click(function(){
var v=$(this).val();
if(v=='0'){
$('#val').hide();
} else {
$('#val').show();
}
});
});

function addPic(index){
file_select('pic'+index,1);
}
function uploadpic(obj){
var id=$(obj).attr('sn');
openwinx('?mod=phpcms&file=upload&uploadtext=pic'+id,'upload','350','350');
}
<?php if(!empty($subjects)){ ?>$('tr[tag=hover]').trhover();<?php } ?>

相关文章

文章浏览阅读483次。dedecms织梦频道模板中调用栏目分类并排...
文章浏览阅读284次。我们在用织梦建站的过程中,难免会遇到各...
文章浏览阅读152次。seo专题是seo优化必不可少的一环,对于网...
文章浏览阅读142次。在Dedecms中,在列表页调用文章摘要的方...
文章浏览阅读234次。织梦DedeCMS文章内容发布时可以选择“头...
文章浏览阅读701次。虽然织梦DedeCMS因为安全问题被人所诟病...