Richard's didn't work because he formed an array instead of an object like he was planning. Replacing the [ ... ] with { ... } should've made it work.
On Jul 11, 4:13 pm, brendan <[EMAIL PROTECTED]> wrote: > Thanks Richard, I couldn't get yours to work (my js knowledge is > pathetically rusty) and ran out of time to tinker with it, I ended up > just prepending the image to the div by class after it's randomly > added: > > $(document).ready(function(){ > $("#main.nike").prepend('<img src="swoosh.jpg" alt="nike" />'); > $("#main.adidas").prepend("<img src="3stripe.jpg" alt="adidas" />"); > $("#main.reebok").prepend("<img src="rbk.jpg" alt="reebok" />"); > > }); > > Not the cleanest solution but it seems to be working... Thanks again > noon for your help as well