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 button
gets the class .onestepcheckout-place-order-button-disabled
it looks like this:
<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 button
gained this additional class, span
would have display:block
or .show()
. I thought a lot about logic to accomplish this, but to no avail.