About 5,780,000 results
Open links in new tab
  1. jQuery OR Selector? - Stack Overflow

    Feb 15, 2010 · I am wondering if there is a way to have "OR" logic in jQuery selectors. For example, I know an element is either a descendant of an element with class classA or classB, and I want to do …

  2. jQuery $(this) selector function and limitations - Stack Overflow

    this is not a string representing a css selector (such as div, #my_id or .my_class). When passing this as a argument for the jQuery function, it returns a jQuery object based on the current element (what this …

  3. How to use a regular expression in a jQuery selector?

    66 If your use of regular expression is limited to test if an attribut start with a certain string, you can use the ^ JQuery selector. For example if your want to only select div with id starting with "abc", you can …

  4. jquery - The $ dollar sign - Stack Overflow

    Dec 13, 2013 · 21 The cash sign is just an alias for the jQuery function. Starting the variable name with $ has no effect on that variable. It is customary though, especially in jQuery plugin development, to use …

  5. How to get the children of the $ (this) selector? - Stack Overflow

    2423 I have a layout similar to this, and would like to use a jQuery selector to select the child img inside the div on click.

  6. How can I get selector from jQuery object - Stack Overflow

    The jQuery object has a selector property I saw when digging in its code yesterday. Don't know if it's defined in the docs are how reliable it is (for future proofing).

  7. jQuery - multiple :not selector - Stack Overflow

    Mar 12, 2015 · 93 I'm trying to target page-wide links that do not start with a '#' and do not include in-line javascript but I'm having problems figuring out how to structure the selector properly. Based on what …

  8. Selecting element by data attribute with jQuery - Stack Overflow

    Feb 10, 2021 · The selector for "get the first element" is correct but not consistent with the other examples -- I believe it's missing "data-".

  9. Multiple Parameters for jQuery selector? - Stack Overflow

    Apr 20, 2010 · $(context).find(expr) Give a look to the documentation of the jQuery function: Selector Context By default, selectors perform their searches within the DOM starting at the document root. …

  10. How can I select an element by name with jQuery?

    Jul 10, 2009 · In summary, if you can't select by Name, either use a complicated jQuery selector and accept any related performance hit or use Class selectors. You can always limit the jQuery scope by …