I would like the toggle button to automatically turn off, and whichever product I select should also be turned off. When clicking on it, the product should then be displayed.
HTML
<div class="heading" id="seamless" style="display: none;">
<center>PayPal now accepted! Make a sale and we'll email you to claim your funds. Easy! Your email: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89e8ede4e0e7c9ecf1e8e4f9e5eca7eae6e4">[email protected]</a></center>
</div>
Toggle Button
<div id="normal-toggle-button">
<input name="open" value="1" type="checkbox" onchange="checkshowhidereverse(this.status, '#seamless'); checkshowhidereverse(this.status, '#setup');" checked="checked" />
</div>
Javascript
$(document).ready(function () {
//* toggle buttons
toggle_buttons.init();
});
Javascript function
//* toggle buttons
toggle_buttons = {
init: function () {
$('#normal-toggle-button').toggleButtons();
}
};