In my "Terms and conditions" pop up window, my requirement is to show the tick mark after closing the pop-up. It is happening only when we click the checkbox. Below is my code for terms and conditions,
Main HTML page:
<div class="checkout-agreement">
<input type="checkbox" class="required-entry">
<label class="label">
<button type="button" class="action action-show">
<span>I agree the Terms Conditions</span>
</button>
</label>
</div>
Popup window:
<div class="modal-inner-wrap">
<header class="modal-header">
<button class="action-close" data-role="closeBtn" type="button">
<span>Close</span>
</button>
</header>
<div class="modal-content">
<div id="checkout-agreements-modal">
<div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
</div>
<footer class="modal-footer">
<button class="action secondary action-hide-popup" type="button" "><span>Close</span></button>
</footer>
</div>
jQuery Code:
$('.checkout-agreement').modal({
...
closed: function (){
// Do some action when modal closed
}
});
Please give me suggestions to make this work.
Aucun commentaire:
Enregistrer un commentaire