How do jellyfish know to eat if they have no brain?

They filter in plankton in the same way that they move around.