Modify ↓
Ticket #8408 (closed bug: invalid)
DOM element as selector inconsistency
| Reported by: | brad.robert.crawford@… | Owned by: | brad.robert.crawford@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Creating a jquery object from DOM element via $() fails but succeeds when using jQuery()
For example: $( document.getElementById( "id") ) => null jQuery( document.getElementById( "id") ) => $.init[1]
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Thank you for your time and interest in helping the jQuery project, but we require that all bugs have a working testcase on jsfiddle or another live test case we can audit. What's likely going on here is that some other framework has taken control of the $ variable and so it no longer points to jQuery. You can use jQuery.noConflict to work around this.