function loadTextboxes()
{
var textareas = document.getElementsByTagName('textarea');
for(var i=0; i < textareas.length; i++)
{
if (textareas.item(i).className == "richtextbox")
{
richtextbox(textareas.item(i));
}
}
}
//window.attachEvent('onload',loadTextboxes);
$(document).ready(function() {
//loadTextboxes(); // works ...
$('.richtextbox').each(richtextbox(this));
});
A JavaScript function searches for textarea with class "richtextbox" and calls another function (not posted here) ... tried to do this with jQuery - does not work :-(