Or you can use the attribute selector for brevity:
jQuery("[id='" + actual element id + "']") which will return the same element. Hope that helps. On Jul 9, 6:10 pm, KeeganWatkins <mkeeganwatk...@gmail.com> wrote: > Ralph is correct, as jQuery uses the colon as a prefix for selector > filters like :hidden and :last. To fix, you can just pass in the raw > node like this: > > jQuery(document.getElementById( actual element ID)) > > which will return the wrapped set. Cheers. > > On Jul 8, 3:47 pm, Ralph Whitbeck <ralph.whitb...@gmail.com> wrote: > > > > > It's not a problem with Prototype and it being mixed cause you get the same > > problem if you just isolate it to just a page with jQuery. > > > The problem seems to be an invalid ID name. I was able to get a match when > > I took :: out of the ID name. > > > Ralph > > > On Wed, Jul 8, 2009 at 12:14 PM, Matt Zagrabelny <mzagr...@d.umn.edu> wrote: > > > > Greetings, > > > > I am attempting to use jQuery in a Prototype environment (Request > > > Tracker RT3.8). > > > My ready handler is working, but my first attempt at establishing a > > > wrapped set is not working. > > > > Some snippets: > > > > jQuery.noConflict(); > > > > jQuery(document).ready(function() { > > > set_max_length('Object-RT::Ticket--CustomField-29-Value', 4); > > > } > > > > function set_max_length(id, max_length) { > > > alert("There are " + jQuery('#' + id).size() + " elements in the > > > wrapped set."); > > > } > > > > My alert message comes back with 0 (zero) elements in the wrapped set. > > > There is an input element with id = 'Object-RT::Ticket--CustomField-29- > > > Value' in the DOM. Am I missing anything? > > > > Thanks for the help, > > > > -Matt Zagrabelny