[jQuery] noob problem with selector and wrapped set
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