Hi,
Looking at this Plunker example:
slideToggle example
I want that if I click on one of the select boxes, the next div right after it, slides up. To achieve this, I wrote this code:
It works fine. But I have to click a select box twice to fire up the slideToggle event. Why is that and how can I fix it?Code:// Event Delegation
$('#container').on('click', '.my-select', function() {
$(this).next(".my-div").slideToggle();
});
Thanks
