Top "Jquery-selectors" questions

Selectors can be used in jQuery to match a set of elements in a document.

Check if any ancestor has a class using jQuery

Is there any way in jQuery to check if any parent, grand-parent, great-grand-parent has a class. I have a markup …

javascript jquery html jquery-selectors jquery-1.7
Handling multiple IDs in jQuery

Can multiple ids be handled like in the code? <script> $("#segement1, #segement2, #segement3").hide() </script> <…

jquery jquery-selectors
jQuery : select all element with custom attribute

Possible Duplicate: jQuery, Select by attribute value, adding new attribute jQuery - How to select by attribute please consider this …

javascript jquery jquery-selectors
jQuery: how to find first visible input/select/textarea excluding buttons?

I tried $(":input:not(input[type=button],input[type=submit],button):visible:first") but it doesn't find anything. What is …

jquery input jquery-selectors
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 …

jquery jquery-selectors
jQuery: select all elements of a given class, except for a particular Id

This is probably pretty simple. I want to select all elements of a given class thisClass, except where the id …

jquery jquery-selectors
How to generate UL Li list from string array using jquery?

I have string array like 'United States', 'Canada', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bangladesh', 'Belarus', 'Belgium'**, ... etc. I …

jquery jquery-ui jquery-selectors javascript-framework
How to use placeholder as default value in select2 framework

To get the chosen value of a select2 I'm using: var x = $("#select").select2('data'); var select_choice = x.text …

jquery jquery-selectors jquery-select2
jQuery select element in parent window

Is there a way to select a DIV in the parent window using jQuery? For example: Main page contains this, &…

jquery jquery-selectors popup parent
Get text of the selected option with jQuery

I have a select box with some values. How do I get the selected options text, not the value? <…

javascript jquery html drop-down-menu jquery-selectors