DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Saber si un elemento existe en el DOM
if ($('#elemento').length) { // si existe } else { // no existe }
Source by es.stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Saber
#si
#elemento
#existe
#en
#el
#DOM
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit