Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evt.add loop #3

Open
marlonramirez opened this issue Mar 28, 2014 · 0 comments
Open

evt.add loop #3

marlonramirez opened this issue Mar 28, 2014 · 0 comments
Labels

Comments

@marlonramirez
Copy link
Contributor

Cuando se ingresan varios elementos en evt.add solo se toman los primeros y si estos no existen se detiene el ciclo, lo que genera errores al querer agregar eventos a elementos de diferentes paginas. Por ejemplo tenemos en dos paginas diferentes a id:cmb1, id:cmb2 y a id:cmb3, todos deben compartir los mismos eventos, pero si tengo:

$.add([$("#cmb1"), $("#cmb2"), $("#cmb3")], "change", evento);

cuando estemos en la página de id:cmb3 no tomara el evento, pues en esta pagina id:cmb1 es null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant