Währung:
$(document).ready(function() { waitForElementToDisplay('.custom-dropdown', 200, 1000); }); function waitForElementToDisplay(selector, time, tries) { if (document.querySelector(selector) != null) { $('.custom-dropdown').click(function() { $(this).toggleClass('dropdownexpandchev') $(this).find('.custom-dropdown-list').toggleClass('dropdownexpand') }); $('.custom-dropdown-list > div > label').click(function() { $(this).parents('.custom-dropdown-list').removeClass('dropdownexpand'); $(this).parents('.custom-dropdown').removeClass('dropdownexpandchev'); }); return; } else { if (tries >= 1) { setTimeout(function() { waitForElementToDisplay(selector, time, tries - 1); }, time); } else { return; } } }
Kundenstimmen


Rezensionen werden geladen...