0
I’m trying to run a code but it doesn’t work, I don’t know if it’s because of a logic error in its execution, see, this code runs when the button OK is pressed:
$('HTMLNEW').appendTo($(this).closest('.BOX').find('.DIVNEW')).css({
animation: "---"
});
the HTML:
<div class="BOX">
<div class="DIVNEW">
</div>
<button id="ok">OK</button>
</div>
but it does not perform what is asked, indeed it does not perform anything.
What is this
$('HTMLNEW')?– Sergio
@Sergio codes are mere representations,
HTMLNEWare codesHTMLany, how<div id="...– Vinícius Lara
You want to insert a new element/content within the
divnewand then manipulate the css of this new element/content? That’s it? Your question is very confusing.– Pedro Camara Junior
Are you sure this selector
HTMLNEWis there? per case this would not be avariável,#idor.classe? Personally I’ve never seen any reference to thatHTMLNEWin documentations– Adriano Luz
Your code works... https://jsfiddle.net/vo5bco1r/ I don’t understand your problem... you can adapt jsFiddle and explain better?
– Sergio
The question doesn’t really make sense, why it doesn’t work for me is related to
thissince this was executed within a setInterval.– Vinícius Lara