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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:41:51+00:00 2026-05-22T11:41:51+00:00

I have the following: $(‘#TopicRowKey’)[0].value, When I check using IE debugger and do a

  • 0

I have the following:

$('#TopicRowKey')[0].value,

When I check using IE debugger and do a watch on the object I see it has a value. But when the script runs it comes up with a message saying: 0.value is null or not an object

Can someone explain if it’s related to the [0]. I don’t really understand with jQuery what the [0] is for.

            <select  id="Topic" name="TopicRowKey">
                    <option value="01">aa</option>
                    <option value="02">bb</option>
            </select>
  • Note that I realized one thing that’s wrong. My id name is not correct 🙁 I looked at this for so long and didn’t see it in the code.
  • 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-22T11:41:52+00:00Added an answer on May 22, 2026 at 11:41 am

    jQuery returns an array-like object.

    This means it is an object that can be traversed as if it was an array.

    When you do $(“#myId”)[0], it returns the actual element of the page.

    That is, your jQuery sintax is correct. Perhaps this element does not support a value (like a div, for example), or you’re making a mistake somewhere else. You’ll have to provide full code for us to see what is actually wrong.

    Here is a fiddle with a working example:
    http://jsfiddle.net/SW5Hz/

    Edit:

    You’re searching for the wrong id. It should be

    $("#Topic")[0].value;
    

    or

    $("#Topic").val();
    

    The # are meant for id only. If you want to search for name, do:

    $("[name='TopicRowKey']")[0].value;
    

    or

    $("[name='TopicRowKey']").first().val();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following foreach-loop: using System.IO; //... if (Directory.Exists(path)) { foreach(string strFile in Directory.GetFiles(path,
I have following page <html> <head> <script type=text/javascript src=e01.js></script> </head> <body> <script type=text/javascript> var
I have following code in a python script try: # send the query request
I have following code which works fine in iPhone application but in iPad I
I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have following string String str = replace :) :) with some other string;
I have following situation. A main table and many other tables linked together with
I have following table structure: Table: Plant PlantID: Primary Key PlantName: String Table: Party
I Have following code: Controller: public ActionResult Step1() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public
I have following text in a file 23456789 When I tried to replace the

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.