1
<div class="add-gift-message no-display" id="add-gift-options-86">
    <h3>Do you have any gift items in your order?</h3>
    <p>
        <input type="checkbox" name="allow_gift_options" id="allow_gift_options" value="1" onclick="toogleVisibilityOnObjects(this, ['allow-gift-options-container']);" class="checkbox" />
        <label for="allow_gift_options">Add gift options</label>
    </p>
</div>
<div class="gift-message-form" id="allow-gift-options-container">

<div class="inner-box">
        <div id="add-gift-options-for-order-86" class="no-display">
        <h4>Gift Options for the Entire Order</h4>
        <p>
            <input type="checkbox" name="allow_gift_messages_for_order" id="allow_gift_options_for_order" value="1" onclick="toogleVisibilityOnObjects(this, ['allow-gift-options-for-order-container']);" class="checkbox" />
            <label for="allow_gift_options_for_order">Add gift options for the Entire Order</label>
        </p>
    </div>

如何在 id="add-gift-options-86" 的复选框的 onclick 上删除事件侦听器并且不选择复选框,具体取决于其他 id 为 ="allow_gift_options_for_order" 的复选框也可见,默认情况下应选中

4

0 回答 0