Answer the question
In order to leave comments, you need to log in
How to remove a piece of code if a certain id is present on the page?
Hello. I'm trying to do this thing in dle: if there is any error on the page, then you need to remove a certain part of the code. The error has id "werror" . I wrote this code
if($("#werror")) {
$('.fav').remove();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question