With Jake Query we can remove HMO elements using filters.
In this example page we have four paragraphs when we click the removed button
we have triggered an event that will remove paragraphs 2 3 and 4 from the web page using the filter
removed method.
Let's take a look at the code to gain a better understanding of how this works
in our body tag.
We have a button element in four paragraph elements.
The first paragraph element has no idea assigned the second and third have the class read one and the
fourth paragraph has the class room too.
We've defined this style properties of REM 1 and REM 2 in our style sheet so you can see that REM 1
the text color is blue font sizes 15 and REM 2.
The text colors red font size is also 15 now in our script.
We've created a click event on the button.
When the button is clicked we've used the removed method to remove any paragraph element with the ideas
REM 1 or REM 2.
And so that's how the removed method can be applied.
So once again if I refresh the page
that's how that works.