Arkadaşlar bir sorum olacak javascript ile aşağıdaki
radionun içine label oluşturmak ve
img nesnesini bir div içine almak istiyorum.
label için aşağıdaki şekilde appendChild denedim ama hata alıyorum.
çalıştıramadım.
items.forEach(function (item) {
target_preview.append(
$('<img>').css({'height': '8rem', "margin":"5px"}).attr('src', item.thumb_url),
$('<span>').attr('onClick', item.thumb_url).addClass("resimsil uil-trash-alt"),
$('<input>').attr('type', 'radio').addClass("resimsec").appendChild(document.createElement('label'))
);
});