use jquery to add a div wrapper to a dynamically created drupal modual div I need to add a div with class=row around a bunch of divs that are being dynamically created by a drupal module (cant do it in the view either)

i was trying this, but since it is created dynamically, it does not work:

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


this is the div that the module spits out that i want a row around

id='edit-secondary-wrapper'
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'.