Inserting a new Element after PDF Print E-mail
Written by Robert Crowder   
Tuesday, February 23, 2010 at 07:32 PM
Here is how to inject another element after an existing one. Example is below. Here is the HTML

Here is the MooTools 1.11 code
window.addEvent('domready', function() {
    
    $('clickme').addEvent('click',function (){
    
        (new Element('button',{
            'styles':{
            'width':'50px',
            'height':'30px'}})
            .setText('Hello'))
            .injectAfter('clickme');
           

    });
});