Announcement Announcement Module
Collapse
No announcement yet.
Issue with spring-bundled dojo's remAttr method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with spring-bundled dojo's remAttr method

    I am trying to remove an attribute from a node. I use the Dojo/Dijit bundled with Spring Roo. I am at a loss on how to sort the error below. Can anyone please help?

    Here is the js code:
    Code:
    dojo.ready(function remAttr(){
         dojo.removeAttr('theId', 'value');
    });
    Here is the node I am trying to access:
    Code:
    <option id="theId" value="">Tous</option>
    Here is the error code I get:
    Code:
    byId(node) is null
    toString()dojo.js (ligne 14)
    node = "theId"
    name = "value"
    remAttr()findPl...ld&form (ligne 40)
    toString()dojo.js (ligne 14)
    toString()dojo.js (ligne 14)
    toString()dojo.js (ligne 14)
    toString()dojo.js (ligne 14)
    e = DOMContentLoaded
Working...
X