Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. spalamas
    S
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    spalamas

    @spalamas

    0
    Reputation
    1
    Posts
    703
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    spalamas Follow

    Posts made by spalamas

    • Change placeholder of an <ons-input> with Javascript

      I am trying to change the placeholder text of an <ons-input> element by javascript but the placeholder is not updated. I am using:

      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.

      Thanks!

      posted in Onsen UI
      S
      spalamas