Jquery Click Only Work Once On Toggle
I am using the following script to show a different background depending on the state of the div. When it is not expanded it shows the 'plus (+)' sign, while when is expanded it d
Solution 1:
Use on function to bind events,
$('element').on('click', function() {
});
Solution 2:
$('.mix').click(function() {
var collapse_content_selector = $(this).attr('href');
var toggle = $(this);
$(this).find('.meta').css('background', 'url(images/arrow_down.png) no-repeat scroll 95% 97% transparent');
$(collapse_content_selector).toggle(function() {});
});
Try this
Post a Comment for "Jquery Click Only Work Once On Toggle"