Check if an element exists using jQuery

Check if an element exists using jQuery

Have you ever wanted to check if a element exists using jQuery, but not got the results you were looking for? It’s not as obvious as you might think it is, but when you understand how jQuery treats objects you will never have this problem again. Let’s look...