Я использую меню .fadeToggle
на моем сайте.
У меня есть несколько кнопок, которые показывают разные div при нажатии на них.
Все правильно, и вы можетеперемещаться по нему, но я хочу, чтобы пользователь не нажимал на ту же кнопку и не закрывал информацию (это делает экран полностью пустым).
Если я использую e.stopPropagation()
, я невозможность навигации по нему.
Заранее спасибо.
HTML:
</div><div id="toggleContainer2">
<p><p>This is not an advertising platform, all selected agencies are more or less a subjective choice. The author reserves the right not to be responsible for the topicality, correctness, completeness or quality of the information provided. Liability claims regarding damage caused by the use of any information provided, including any kind of information which is incomplete or incorrect, will therefore be rejected. </p>
<p>All offers are not-binding and without obligation. Parts of the pages or the complete publication including all offers and information might be extended, changed or partly or completely deleted by the author without separate announcement.</p></p>
</div>
...
<a class="btn" id="trigger2">Disclaimer</a>
JS:
<script>
$(document).ready(function() {
// toggle advanced search
$("#toggleContainer2").hide();
$("#trigger2").click(function() {
$("#toggleContainer2").fadeToggle(1500);
$("#toggleContainer").hide();
});
});
</script>