About 133,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. 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 …

  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. 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?

  6. Submit a form using jQuery - Stack Overflow

    I want to submit a form using jQuery. Can someone provide the code, a demo or an example link?

  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. 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.

  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. javascript - JQuery - $ is not defined - Stack Overflow

    In jQuery's case, $ is just an alias for jQuery, so all functionality is available without using $. If we need to use another JavaScript library alongside jQuery, we can return control of $ back to the …