use jquery to add a div wrapper to a dynamically created drupal modual div
You may be looking for this

$("#edit-secondary-wrapper").wrap("&lt;div class='row'&gt;&lt;/div&gt;");


This wraps the div with id 'edit-secondary-wrapper' with a parent div with class 'row'.