I am trying to add a div as the first div in a group of child divs in a parent.
$('#activitytable:first-child').before('<div></div>');
The parent div’s ID is activitytable. I have been trying to figure this out for a few hours and have tried multiple methods with no avail. I am trying to add the new div to the top of the others in activitytable.
Any help is greatly appreciated!!
– Chris
As you see here, your solution does not work overly well: http://jsfiddle.net/Yfhqr/2/
does though.