replace colour

replace colour


Hi,
I've got two tables
One of 12 draggable colours and one of 6 droppable boxes.
I want to be able to drop the colours onto the boxes.
My colours tables currently has the name of each colour and I used
this:
$(this).text(ui.draggable.text());
to change the text in the boxes to the corresponding name of the
colour, but I don't know how to change the colour of the boxes!
The colours are defined using CSS.
can anyone help me here?