Just my two cents:
Best advice, as suggested, is to use one framework or the other (prototype OR jQuery etc.). No matter what plug-in or feature you would like to use, a comparable version can
always be found in the other framework.
Can I also repeat the need to WAIT UNTIL THE PAGE HAS FULLY LOADED before attempting to reference any element on the page. In jQuery:
Code:
$(document).ready(function() {
// reference page elements, attach events, here!
});
or even the shorthand version:
Code:
$(function () {
// your code
});
The elements on the page DO NOT EXIST until the page has loaded.
This is the most common error.