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 7075803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:13:17+00:00 2026-05-28T06:13:17+00:00

Having read the documentation for the remove-function at http://api.jquery.com/remove/ , was under the impression

  • 0

Having read the documentation for the remove-function at http://api.jquery.com/remove/, was under the impression that the following code would work.

If I have an input element like this:

<input id="hiddenRatings" name="languageRatings" type="hidden" value="{5, 3, 2, , , {5, 3, 4, , , {5, 3, 2}}}"/>

I thought I would be able to remove it simply by doing

$().ready(function() {
   $('#hiddenRatings').remove();
});

But nothing happens, my input element remains. What am I doing wrong?

EDIT: Crap…… It does work! I´m using Chrome tools, and I was looking at the DOM in the Scripts tab rather than the Elements tab. The Scripts tab doesn´t update when the DOM is changed apparently…

  • 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-05-28T06:13:17+00:00Added an answer on May 28, 2026 at 6:13 am

    My guess is you are meaning to use this:

    $(document).ready(function() {
        $('#hiddenRatings').remove();
    });
    

    Using $(document) waits for all the HTML elements to be loaded into the DOM. I’m not sure if $() actually does anything: Your function will be executed before that element is loaded into the DOM (or maybe not even executed at all, since I’m not sure whether “$()” actually works).

    Hope that helps

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

Sidebar

Related Questions

I'm having a problem with my jQuery code on http://alpha.spherecat1.com/ , but the local
I am having trouble finding a class or API in Android documentation that would
I have read the documentation of each function on jQuery official website , but
I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I'm still having
Having read the documentation and many many articles I believe the following should work
Having read the documentation of Java's String class, it doesn't appear to support popping
After having read that QuickSilver was no longer supported by BlackTree and has since
I recall having read somewhere that it is better (in terms of performance) to
I remember having read this in Apple's documentation but now I can't find it.
I'm having trouble with isdigit. I read the documentation, but when I cout <<

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.