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,
HTMLNEW
are codesHTML
any, how<div id="...
– Vinícius Lara
You want to insert a new element/content within the
divnew
and 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
HTMLNEW
is there? per case this would not be avariável
,#id
or.classe
? Personally I’ve never seen any reference to thatHTMLNEW
in 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
this
since this was executed within a setInterval.– Vinícius Lara