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.
How to change <ons-button> text?
-
Hello,
How to change button text from “ADD” to “View” below please?
<ons-button id=“btn1” class=“button button–cta-large” style=“align:right; margin: 0 auto;” onclick=“test()”> Add </ons-button>
Thanks for your help!
-
@mmike ,
document.getElementById("btn1").innerText = " View ";
-
Thanks Jamal!