Skip to content
Advertisement

Tag: jquery

How to init hidden swiper on page load?

I have a swiper positioned inside a tab on a wordpress site, thus it is not initiated on page load, so the navigation function does not work. You can see it here by clicking on the “görüşler” tab. I did a research and I found out that it’s a common issue and it can be initiated with some custom jquery.

jQuery event triggered multiple times

I have cloned divs containing buttons that clone their parents. Upon trying to click the buttons, events are triggered 2n times such that clicking the second clone produces 4 other clones and so on: What could I be doing wrong? Answer A few things. It’s easier to use a deferred click handler. You were cloning all ‘cloneable’, not just the

CKEditor 5, jQuery – find and replace text

How could I find and replace text in CKEditor 5 using JavaScript and jQuery? I want to find special character ‘@’ in the text and replace all characters after ‘@’ and ‘@’ character too on my own text. I am using change:data… Answer you need editor.getData() and editor.setData(), then use Regex @w+  to match @, alphanumeric and space, without matching

Advertisement