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…