hi guys how may in append div into another div using another div attributes; someone help me using jquery or javascript;
Answer (1)
hello;
Answer: Use the jQuery attr() method
for example:
$('div2[data-id="230"]').addClass('error');
$('div2[data-id="230"]').append('Added
');
$('div2[data-id="230"]').removeAttr('data-id');
hope its use full to you