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.
spalamas last edited by
document.getElementById('myinput').placeholder = 'newText'
What’s wrong; Please not that the above code works when I turned the <ons-input> to a simple HTML <input> element. So it seems that <ons-input> ignores dynamically changed attributes.
document.getElementById('myinput').setAttribute('placeholder', 'newText'). Perhaps we should make getter/setter for this…