Linked Questions

6 votes
4 answers
1k views

I have a page which changes the ID of input fields every time. So for example if I visit the page now, the ID can be "stack_15_overflow" and next time it can be "stack_293_overflow". I want to use a ...
Byzantine's user avatar
2 votes
2 answers
362 views

I want to get all elements that class contains a number, how can I do that? I haven't tried anything because I don't really know how to think about it.
Berkay Gunduz's user avatar
5 votes
2 answers
294 views

I would like to affect all my elements containing a class almost similar, i could iterate and use the iterator to do the job, but i am wondering if we could use a regex in this case: $('.player')....
Ludo's user avatar
  • 5,300
2 votes
2 answers
72 views

So i want to hide all elements and use $('[id^=option_]').hide(); And that works fine, however it is hiding things i dont want it to hide. I have dynamically generated ids such as option_1 ...
Austin Best's user avatar
  • 1,058
0 votes
0 answers
48 views

I would like to apply a numeric range on ends with (id$=) with jQuery but I couldn't. I tried: [id$="[1-8]"] My code: <script> $(function() { $('[id^="text"][id$="[...
neves's user avatar
  • 824
0 votes
0 answers
40 views

I have an element with id shipping_method_0_some_name_here. The element will always have this pattern, only the number in the middle will differantiate, and there will always be only one element like ...
Faye D.'s user avatar
  • 724
1976 votes
29 answers
1.4m views

I would like to create a String.replaceAll() method in JavaScript and think using a regex would be the most terse way to do it. However, I can't figure out how to pass a variable into a regex. I can ...
JC Grubbs's user avatar
  • 40.5k
745 votes
6 answers
562k views

I'm trying to use a wildcard to get the id of all the elements whose id begin with "jander". I tried $('#jander*'), $('#jander%') but it doesn't work.. I know I can use classes of the elements to ...
tirenweb's user avatar
  • 31.9k
169 votes
4 answers
258k views

I'm trying to find all elements on a page whose element ID contains a certain text. I'll then need to filter the found elements based on whether they are hidden or not. Any help is greatly appreciated....
user48408's user avatar
  • 3,392
62 votes
7 answers
89k views

I have the following input elements: <input id="AAA_RandomString_BBB" type="text" /> <input id="AAA_RandomString_BBB_Start" type="text" /> <input id="AAA_RandomString_BBB_End" type="...
user avatar
56 votes
4 answers
97k views

I have a structure of html like this: <div id="triger1">some elements inside</div> <div id="triger2">some elements inside</div> <div id="triger3&...
Dmitri S.'s user avatar
  • 3,448
21 votes
7 answers
33k views

What's the fastest way possible to get a string like "fade" from the classes in the element below? <div class="MyElement fx-fade"> ... </div>
Alex's user avatar
  • 66.6k
36 votes
6 answers
39k views

I have several div's with "project[0-9]" classes: <div class="project1"></div> <div class="project2"></div> <div class="project3"></div> <div class="project4"&...
ditto's user avatar
  • 6,417
19 votes
3 answers
53k views

I have an ASP.NET application that renders multiple questions with the option to provide an explanation for the answers given. <label for="[<%:count %>].AnswerExplanation_<%: i+1 %>" ...
Alex's user avatar
  • 1,042
16 votes
2 answers
33k views

I tried to find all ids starting with the string "matchItem_" and define a click-event for each. onclick i want wo execute a script with a URL parameter and change the image in this id-...
michbeck's user avatar
  • 745

15 30 50 per page
1
2 3 4 5 6