Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8300729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:39:59+00:00 2026-06-08T16:39:59+00:00

I am trying to remove an attribute from a node . I use the

  • 0

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:

dojo.ready(function remAttr(){
     dojo.removeAttr('theId', 'value');
});

Here is the node I am trying to access:

<option id="theId" value="">Tous</option>

Here is the error code I get:

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 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:40:01+00:00Added an answer on June 8, 2026 at 4:40 pm

    I just tried this (jsfiddle) and it seems to work fine. The error you have suggests that the ‘theId’ node can’t actually be found in the DOM tree (byId(node) is null). Are you sure it’s actually present? If you do a document.getElementByID(“theId”) by hand, can you find the option node yourself?

    Whenever I’ve seen this sort of behaviour before, it was generally that the part of the UI I was looking for hadn’t yet been rendered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to remove a class attribute from an element and add the class
I am trying to remove the attribute xmlns=http://webdev2003.test.com from the following xml using xsl/xslt,
From a shell script, I'm trying to remove extended attribute setfattr -x security.selinux file.txt
I'm trying to use a lambda expression to remove a certain object from a
I'm trying to remove an element from a page based on it's background attribute.
I am trying to use Java to remove all xml attributes from a XML
I'm trying to remove unused spans (i.e. those with no attribute) from HTML files,
I'm trying to remove/replace the title attribute on the category elements used by WordPress.
I'm trying to remove scrollbar from my facebook app. I tried js solution, that
I'm trying to remove wiki formatting from some text so it can be parsed.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.