![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/04/2012, 12:25
|
![Avatar de Dafonz](http://static.forosdelweb.com/customavatars/avatar326793_3.gif) | | | Fecha de Ingreso: octubre-2009
Mensajes: 127
Antigüedad: 15 años, 3 meses Puntos: 36 | |
Respuesta: Hacer que cuando un elemento exista se haga un acción con el length de los objetos puedes saber si existe o no:
($('#elemento').length > 0) ? alert('Existe'): alert("No Existe"); |