Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Queryselector - getElementById -> Not Working within Onsen Modal
-
I have a simple Onsen input element - a Login sample taken right from the document/demo here: https://onsen.io/v2/api/js/ons-input.html
I made one change - I moved the text inputs and login button within an Onsen modal instead of page.
The login() function cannot access the modal input values - they appear to be undefined.
This is probably a Javascript error - I think I’m doing something wrong.
Any guidance would be helpful.
-
This should work properly (and I verified it by moving the inputs into a modal like you said).
Can you post the code please? Then we should be able to see the problem.
-
Sorry… It does work - late night coding - had typo’s…