Type the correct personal pronoun in place of the noun or nouns in parentheses.

I'm not sure it's a good idea to give the candy to (the children) ____? .

Children is the object of the preposition "to" Therefore, you need an "objective case" pronoun.

http://englishplus.com/grammar/00000021.htm