This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Pin code menu
#5
(21.02.2022, 08:59)admin Wrote: This JS will click every element with autoclick class on plan change (won't trigger when the first default plan is shown):
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  });
});

You can also hide these elements if needed via CSS:
Code:
.autoclick {
  visibility: hidden; 
}

Thank you, it works!!
But it's possible to apply to the first default plan?
Reply


Messages In This Thread
Pin code menu - by jmir - 21.02.2022, 08:04
RE: Pin code menu - by Daniel - 21.02.2022, 08:25
RE: Pin code menu - by jmir - 21.02.2022, 08:29
RE: Pin code menu - by admin - 21.02.2022, 08:59
RE: Pin code menu - by jmir - 21.02.2022, 09:41
RE: Pin code menu - by admin - 21.02.2022, 12:54
RE: Pin code menu - by jmir - 21.02.2022, 13:07

Forum Jump: