tagged [jquery-selectors]

Wildcards in jQuery selectors

Wildcards in jQuery selectors 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 u...

7 Dec at 22:39

jQuery: Check if div with certain class name exists

jQuery: Check if div with certain class name exists Using jQuery I'm programmatically generating a bunch of `div`'s like this: Somewhere else in my code I need to detect if these DIVs exist. The class...

How to select specific form element in jQuery?

How to select specific form element in jQuery? I have two form like this: Now I want to insert text in field of . I am using [following jQuery code](http://jsfiddle.net/BNXuw/

11 Dec at 20:31

JQuery - how to select dropdown item based on value

JQuery - how to select dropdown item based on value I want set a dropdown(select) to be change based on the value of the entries. I have And I know that I want to change the dropdown so that the optio...

Trigger an event on `click` and `enter`

Trigger an event on `click` and `enter` I have a searchbox on my site that. Currently, users must click the submit button next to the box to search via jquery's post. I would like to let users also pr...

5 Feb at 03:26

In jQuery how can I set "top,left" properties of an element with position values relative to the parent and not the document?

In jQuery how can I set "top,left" properties of an element with position values relative to the parent and not the document? `.offset([coordinates])` method set the coordinates of an element but only...

jQuery get specific option tag text

jQuery get specific option tag text All right, say I have this: What would the selector look like if I wanted to get "Option B" when I have the value '2'? Please note that this is not asking how to ge...

JQuery create new select option

JQuery create new select option I have the below functions in regular JavaScript creating select options. Is there a way I can do this with jQuery without having to use the form object? Perhaps storin...

jQuery - passing value from one input to another

jQuery - passing value from one input to another I have a form, with several input fields that are `title`, `name`, `address` etc What I want to do, is to get these values and 'put them' into values o...

5 May at 10:33

Not class selector in jQuery

Not class selector in jQuery Is there a simple selector expression to not select elements with a specific class? I just want to get the first three divs and tried But this receives all as the last div...

6 Jan at 10:51

Access the css ":after" selector with jQuery

Access the css ":after" selector with jQuery I have the following css: I'd like to change the border-width of

22 Jul at 13:41

jQuery UI tabs. How to select a tab based on its id not based on index

jQuery UI tabs. How to select a tab based on its id not based on index I have two tabs and configured usign jQuery UI. dynamically from C# code behind I will hide or select some tab let say tabtwo and...

Set select option 'selected', by value

Set select option 'selected', by value I have a `select` field with some options in it. Now I need to select one of those `options` with jQuery. But how can I do that when I only know the `value` of t...

18 Sep at 15:40

jQuery: how to find first visible input/select/textarea excluding buttons?

jQuery: how to find first visible input/select/textarea excluding buttons? I tried but it doesn't find anything. What is my mistake? UPD: I execute this on $(document).load() ``` $(window).load(functi...

13 May at 00:5

How can I exclude $(this) from a jQuery selector?

How can I exclude $(this) from a jQuery selector? I have something like this: When one of these links is clicked, I want to perform the .hide() function on the links that are not clicked. I understand...

20 Sep at 14:59

Get a list of checked checkboxes in a div using jQuery

Get a list of checked checkboxes in a div using jQuery I want to get a list of names of checkboxes that are selected in a div with certain id. How would I do that using jQuery? E.g., for this div I wa...

2 Aug at 11:20

jQuery function to get all unique elements from an array?

jQuery function to get all unique elements from an array? [jQuery.unique](http://api.jquery.com/jQuery.unique/) lets you get unique elements of an array, but the docs say the function is mostly for in...

22 Jan at 16:38

jQuery selector to get form by name

jQuery selector to get form by name I have the following HTML: Just to know, I am to modify the HTML in order to add an `id` or something else. This is what I tried to get the `form` element by it's n...

16 May at 23:43

jQuery how to find an element based on a data-attribute value?

jQuery how to find an element based on a data-attribute value? I've got the following scenario: and there are 5 ``'s on the page each with a `data-slide=number` attribute . I now need to find the curr...

Combining a class selector and an attribute selector with jQuery

Combining a class selector and an attribute selector with jQuery Is it possible to combine both a class selector an attribute selector with jQuery? For example, given the following HTML: ``` Row 1 R...

3 Jun at 17:15

jQuery UI Open Dialog run Function

jQuery UI Open Dialog run Function This is the gist of what I am trying to accomplish with this code. I want to select an HOUR ahead, which this code Does do that, it just selects 4 items down. BUT my...

1 Feb at 22:8

jQuery: How to get to a particular child of a parent?

jQuery: How to get to a particular child of a parent? To give a simplified example, I've got the following block repeated on the page lots of times (it's dynamically generated): When clicked, I can ge...

use jQuery's find() on JSON object

use jQuery's find() on JSON object Similar to [brnwdrng's question](https://stackoverflow.com/questions/4414778/searching-a-json-object-with-jquery), I'm looking for a way to search through a JSON-lik...

23 May at 12:2

jQuery - Click event on <tr> elements with in a table and getting <td> element values

jQuery - Click event on elements with in a table and getting element values I have the following HTML in a [JSP](http://en.wikipedia.org/wiki/JavaServer_Pages) file: ``` ${cust.number}...

3 Feb at 22:40

Multiple selector chaining in jQuery?

Multiple selector chaining in jQuery? Normally when I use a class as a selector I try to use an "id" selector with it so it does not search through the entire page but only an area where the class wou...

5 Sep at 19:49