I am using the code below where it toggles between 2 div’s.
My problem is that I’m using a checkbox to trigger the toggle.
What I need is that…
If the checkbox is NOT check and the user checks it … then it toggles but if the checkbox is already checked then do not toggle.
Is this possible at all?
Current code is below:
<script type="text/javascript">
$(function(){
$('.togglelink').click(function(){
$('#one').toggle();
$('#two').toggle();
});
});
</script>
What about adding that ?