我被困在为什么这行不通。div
用 of 类抓取可见的.open
,然后div
用of 类抓取 并在其上.edititable
附加图像。
请任何帮助都会很棒。
这是我的代码:
$('#imagefiles ul li img').click(function() {
//Get the source of the image that was clicked
var img = $(this).attr('src');
//grab the visible div and the div with class edititable within it and append image
$(".open:visible.edititable").append('<img src="' + img + '" style="width:30%; height:30%;" ">');
});