Goodafternoon,I'mtryingtoaddadirectelementtoadiv.Butapparentlythe.appendfunctionneedsadivandanotherelement.Theproblemisthattheelementthatcomesbeforeisvariableandmyiconshouldnotbe.
Eventhoughtestingthis,mycodedidnotwork.
<script>$(".card VI").ready(function(){
$("#creditcardZone").append("<h1>Teste</h1>");
});
</script>
HTML:
<div id="creditcardZone" class="card_list"> <label class="card EL"><input type="radio" checked="" value="EL" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="ELO"><span><small>ELO</small></span></label><label class="card MC"><input type="radio" value="MC" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="MasterCard"><span><small>MasterCard</small></span></label><label class="card DC"><input type="radio" value="DC" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="Diners"><span><small>Diners</small></span></label><label class="card AX"><input type="radio" value="AX" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="American Express"><span><small>American Express</small></span></label><label class="card VI"><input type="radio" value="VI" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="Visa"><span><small>Visa</small></span></label></div>
If this function is not suitable for this case, does it have some alternative function similar to this, but I can put an element inside a div, not next to another element?
PS: I do not have access to HTML, so I need to do this.
I've put a picture to illustrate. Basically I need to add a banner there "bank transfer", after adding it, I'll turn it into pop-up so that it's a banking data message, that's all.