ddwwd
- <!-- jQuery Prototype test -->
- <p>Common item</p>
- <p>Common item</p>
- <p class="santa">Santa Claus</p>
- <script>
-
- jQuery.fn.exists = function(){
-
-
- return this.length > 0;
-
-
- }
-
- if ($(".santa").exists()){
-
-
- console.log("Santa exists!");
-
-
- }
- </script>