function addpic()
{
var pic=jq("#picbox .control-group").length;
pic++;
var newpic='
';
if(pic<=30){
jq("#picbox").append(newpic);
ljzha();
}else{
alert("数量建议不要超过三十个!");
}
}
function delpic()
{
var pic=jq("#picbox .control-group").length;
pic--;
if(pic>=1){
jq("#picbox .control-group").eq(pic).remove();
}else{
alert("亲再删就没有了啊!!!!");
}
}
function ljzha() {
jQuery("#picbox .input-box").on("change", function () {
var _this = this;
if (this.name.indexOf('imurl') != -1) {
urldecode(this.value, 'gbk', function(d) {
_this.value = d;
});
}
});
} ljzha();