3
I have a button
and a span
from the following code:
<div id="onestepcheckout-place-order">
<button type="button" class="button btn-proceed-checkout btn-checkout" title="<?php echo $this->__('Place Order Now'); ?>" id="onestepcheckout-place-order-button">
<span><span class="onestepcheckout-place-order-title"><?php echo $this->__('Place Order'); ?></span></span>
<span class="onestepcheckout-place-order-amount hide hidden" ><?php echo $this->getGrandTotal(); ?></span>
</button>
</div>
<span id="process" style="display: none;">Aguarde, processando ...</span>
When the button
class wins .onestepcheckout-place-order-button-disabled
it is as follows:
<button type="button" class="button btn-proceed-checkout btn-checkout onestepcheckout-place-order-button-disabled" title="<?php echo $this->__('Place Order Now'); ?>" id="onestepcheckout-place-order-button">
I wanted to make sure that when the button
gained this additional class, the span
take display:block
or in .show()
. I’ve thought long and hard about a logic to accomplish this, but to no avail.
When the
button
wins that class?– Rafael Augusto
@Rafaelaugusto This class only serves to disable the click on the button and it wins when the credit card is verified.
– Matheus Portela
Span is inside or outside the button?
– Guilherme Nascimento
@Guilhermenascimento Outside the
button
– Matheus Portela
Now you’ve changed your mind ? hehehe, blz so Sergio’s answer should solve.
– Guilherme Nascimento
@Guilhermenascimento Not exactly haha. I ended up missing what I typed, then I ended up doing it again.
– Matheus Portela