I am trying to add some html after a specific h1 tag. The line of html is long and I would like to break it down to multiple lines within the .after function.

Below is the code:

$(document).ready(function() {
    $('#content-main-cell h1').addClass('index-title');
        $('.index-title').after('&lt;div class="mds-logo"&gt;&lt;img src="http://marines.mil/unit/marforres/4thMarDiv/23rdMar/1stBn/img/battalion-logo.jpg"/&gt;&lt;/div&gt;');
});


How do I break this down into multiple lines within the code and have it work ? Do I use a ; at the end of each line ?


Question: How to save viewstate in php (magento)
Answer: You can save the values send through post in the session.
Something like this:  

public function createPostAction(){

    $valid = $this-&gt;_validation();
    $arguments = $this-&gt;getRequest()-&gt;getPost();

    if( $valid === true){
        parent::createPostAction();
    }else{
        Mage::getSingleton('core/session')-&gt;setAddressapiPostData($arguments);
        $this-&gt;_redirect('*/*/create',$arguments);
    }
}


Then in the template that renders the form check if there is any data in the session. 

$sessionValues = Mage::getSingleton('core/session')-&gt;getAddressapiPostData(true); 


The true parameter will make Magento retrieve the values and remove them from the session so you won't see the same values the next time you view the form.
If there are any values in the var $sessionValues add them to the form. Each field for each input.