About 133,000 results
Open links in new tab
  1. What is the purpose of the dollar sign in JavaScript?

    Mar 29, 2022 · A '$' in a variable means nothing special to the interpreter, much like an underscore. From what I've seen, many people using jQuery (which is what your example …

  2. jQuery $ (this) keyword - Stack Overflow

    Sep 18, 2012 · When inside a jQuery method’s anonymous callback function, this is a reference to the current DOM element. $ (this) turns this into a jQuery object and exposes jQuery’s …

  3. How can I get the ID of an element using jQuery?

    The .selector property was deprecated in jQuery 1.7 and is only maintained to the extent needed for supporting .live () in the jQuery Migrate plugin. The property was never a reliable indicator …

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

    Jul 10, 2009 · jquery (E) solution is quite-fast on big tables jquery (E) and querySelectorAll (H) solutions are slowest for small tables getElementByName (G) and querySelectorAll (H) …

  5. How to create a jQuery function (a new jQuery method or plugin)?

    Aug 23, 2012 · Yup — what you’re describing is a jQuery plugin. To write a jQuery plugin, you create a function in JavaScript, and assign it to a property on the object jQuery.fn.

  6. What is the meaning of symbol $ in jQuery? - Stack Overflow

    Jun 26, 2009 · It is shorthand for jQuery (). Which you can use if you want. jQuery can be ran in compatibility mode if another library is using the $ already. Just use jQuery.noConflict (). $ is …

  7. How to loop through array in jQuery? - Stack Overflow

    Oct 15, 2010 · Advantages: Straight-forward, no dependency on jQuery, easy to understand, no issues with preserving the meaning of this within the body of the loop, no unnecessary …

  8. Disable/enable an input with jQuery? - Stack Overflow

    Sep 12, 2009 · $input.disabled = true; or $input.disabled = "disabled"; Which is the standard way? And, conversely, how do you enable a disabled input?

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

    Feb 10, 2021 · Also, if you work with data attributes a lot in your jQuery scripts, you might want to consider using the HTML5 custom data attributes plugin. This allows you to write even more …

  10. jquery - Toggle Checkboxes on/off - Stack Overflow

    Nov 14, 2010 · jquery checkbox jquery-selectors toggle edited Feb 17, 2017 at 7:37 neophyte 6,632 2 32 43