If it's only one div you want to use, this should work:
new Insertion.Top($$("div.someClass").first(), 'content here'); if you want to change all divs with a specific class name: $$("div.someClass").each(function(element) { new Insertion.Top(element, "new content here"); }); Martin, burnfield.com/martin On 7/26/06, Tristan Kelley <[EMAIL PROTECTED]> wrote:
Hi all, Is there a way to use Insert.Top with a div's class instead of the id? I've tried a couple things, including a combination of document.getElementsByClassName and Insert.Top but just can't get it working. Thanks again! _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs