动态添加的img、label,如何点击图片后获取img跟label的值?
程序员文章站
2022-06-16 09:32:06
...
function piclist() { var did = $('#did').combobox('getValue'); $('#dlg').dialog('close'); $('#dlg_pic').dialog('open').dialog('setTitle','添加'); var pic = 'pic'; $.ajax( { type: "get", url : "../php/staff.php", data: "o="+pic, datatype: 'json', success: function(data){//如果调用php成功,data为执行php文件后的返回值 var obj=eval(data); for (var i=0; i"+ ""+ "