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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:37:37+00:00 2026-05-31T16:37:37+00:00

I have a hidden input field on a page <div id=SomeDiv> <input type=text name=ID

  • 0

I have a hidden input field on a page

<div id="SomeDiv">
    <input type="text" name="ID" id="ID" value="Something"/>
</div>

If i use $(“#SomeDiv #ID”).val() in IE9 i get the value “Something” but in IE6 i’m getting undefined. If i change the id and name to lower case IE6 returns correctly. I.e.

<div id="SomeDiv">
    <input type="text" name="id" id="id" value="Something"/>
</div>

Then $("#SomeDiv #id").val(). Notice I’ve not changed the case on the div id, only the input.

Anybody else come across this and a possible work around? Client is using IE6 so switching browser is not an option and I keep coming across this.

Update :

I’ve changed the id value from just “ID” to “WizardID” and it works in IE6

<div id="SomeDiv">
    <input type="text" name="WizardID" id="WizardID" value="Something"/>
</div>

$("#SomeDiv #WizardID").val()

I’ve also come across this issue with a field called “IsValid” IE6 cannot find the field at all but if i rename it “isValid” bam its found. I suspect its a bug with jquery but doubt it will be fixed as IE6 is long past it. Thanks for the help.

  • 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-31T16:37:39+00:00Added an answer on May 31, 2026 at 4:37 pm

    You should change the html if possible:

    In Internet Explorer, if you’re trying to target an element using
    getElementById, for some reason that browser will search the name
    attribute of certain elements on the page, in addition to the id.

    Using id=”id” can also trigger a bunch of other IE issues.

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

Sidebar

Related Questions

I have the below code in my .aspx page. <input type=hidden id=fbinfo name=fbinfo value=
I have an hidden input field with a value, <form> <input type=hidden value=product/> <select
I have this <%=Model.StartDate%> <%=Html.Hidden(StartDate, Model.StartDate)%> it outputs: 2010-05-11 11:00:00 +01:00 <input type=hidden value=2010-03-17
I have a hidden input variable called str. I am assigning abc value to
I have been trying to set the value of a hidden input by using
I have some hidden inputs like this <input name=exam.normals[1].blahblah ..../> I would like somehow
I have a form. The form contains a text field inside of a div.
I have the following AJAX form on my page: <form class=lift:form.ajax> <div class=lift:StreamInput> <input
I have a hidden embedded QuickTime object on my page that I'm trying to
I am trying to create a text input field that converts the input text

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.