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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:44:13+00:00 2026-06-01T06:44:13+00:00

I have this fields <input type=hidden id=uidhcdm name=uidhcdm value=0> <input type=hidden id=uidhcdm name=uidhcdm value=0>

  • 0

I have this fields

<input type="hidden" id="uidhcdm" name="uidhcdm" value="0">
<input type="hidden" id="uidhcdm" name="uidhcdm" value="0">

and i am using a function called change val

function changeval(x,val)
{ 
    $('#'+x).val(val);
}

but when i run the function it only affects the first hidden fields value but not the seconds!

Please help me !!

  • 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-01T06:44:15+00:00Added an answer on June 1, 2026 at 6:44 am

    You have to recognize that the attribute “id” of a tag has to be unique. You can define more elements with the same value for “id” but every DOM access will only retrieve the first one, since, by definition, only one elements is allowed to have one specific id.
    Other words: having the same id for more than one element is malformed code.

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

Sidebar

Related Questions

hey, well I have this form <form method=POST action=''> <input type=hidden name=op value=download1> <input
I have this field in one form : <input type=text name=promocode id=promoCode value= style=width:24%
I have the below code in my .aspx page. <input type=hidden id=fbinfo name=fbinfo value=
I have a field on my page, like this: <input type=hidden name=myField id=myField />
I hope I can explain this right I have two input fields that require
I have an input field with the following value: 12-04-2012 This is a Dutch
I have this kind of mysql db (table name/fields) tbl_users : id, title, approved
I have this function to edit all fields that come from the form and
I have this function in my Javascript Code that updates html fields with their
I have a form with some fields of type text and 2 fields (name

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.