0
내가 링크를 클릭에 나는 display:none
가 display:block
가 될Mootools의 HTML과 CSS의 maniplation 도움
<div class="goto_step3">
<a href="<?= $this->sitePfx ?>/cart/paypal/" id="js_checkout_now" class="arrow">Checkout & Pay</a>
<? if($this->discountCodeErrorMessage): ?>
<p class="error discountError"><?= $this->discountCodeErrorMessage ?></p>
<? endif; ?>
<div class="discountCode fncFixedHeight <?= $this->has_discount ? 'redeemed': ''; ?>">
<? if(!$this->has_discount): ?>
<label for="inptdiscountcode">Enter discount code</label>
<input class='fncInpDiscountCode' id="inptdiscountcode" type="text" name="discount_code" value="" />
<? else: ?>
<? if(!(empty($this->discount['discount_message']))): ?>
<?= $this->discount['discount_message']; ?>
<? else: ?>
Voucher code redeemed
<? endif; ?>
<? endif; ?>
가 DomReady에 내가 Mootools의이 .discountCode
display:none
도 .goto_step3 p
display:none
을 만들고 싶어 다음 HTML을 원했다
도움이 될 것입니다.
클릭 기능과 관련된 문맥은 이미 표시되어있는 A에 바인딩되어 있습니다. this.getNext(). setStyle ("display", "block"); P –
@Dimitar에 감사드립니다. – Anurag