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

  • Home
  • SEARCH
  • 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 3597918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:10:42+00:00 2026-05-18T20:10:42+00:00

Ok, this is a weird request, but I need to use jQuery to manipulate

  • 0

Ok, this is a weird request, but I need to use jQuery to manipulate a bunch of tags that all have the same id and name.

We’re using Izenda AdHoc reporting controls, which has a query designer GUI. It gives you a select dropdown with a list of tables in it, and you can click a button and get another one, and another and another etc. to build your query.

Every time you click for a new table it posts back to the server, and comes back with a new row in the table, with the same controls as the row above, including an identical select tag, with the same id and name attributes. How ASP.NET is generating this is beyond me.

But I was using jQuery to modify the length of the dropdowns as they are too short. Strangely enough, even though they all have the same id, using jQuery like:

jQuery("#ctl00_ContentPlaceHolder1_queryBuilder_ctl101_jtc_Table").width(250);

will only change the first dropdown. I need to widen them all, but they all have the same ID. And there are lots of other select tags I dont want to touch.

Any ideas?

EDIT:
Now that I think about it, I have no idea how this even works. The page poasts back, saves the datasources etc. everything seems to work, but I have no idea how ASP.NET tells one dropdown from another. But it does work.

  • 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-18T20:10:42+00:00Added an answer on May 18, 2026 at 8:10 pm

    $("#yourid") will only match the first one (since, of course, all your IDs should be the unique).

    If you can’t have unique IDs then it’s possible to access them using the attribute equals selector
    $("input[id='yourid']");. This will return all of the matching elements.

    See it working : http://jsfiddle.net/jonathon/22mpK/

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

Sidebar

Related Questions

Ok, this is a weird request, but I need to use jQuery to manipulate
This is pretty weird. I have my Profiler open and it obviously shows that
This one is weird, I have a page that consists of a html table
Hi this may seem like a weird question, but here's my situation: I have
Ok, this might be a weird request, but is it possible to essentially flatten
I'm experiencing this weird problem which my scrollbar jumps by itself to somewhere that
This could be weird, Have you ever come across a blog which you wanted
This is a weird problem I have started having recently. My team is developing
So - I have this weird problem. I have a major project, no details
It's a weird doubt, but it goes.... I have a button in a page,

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.