Whisk together the flour, sugar, baking powder, salt, black pepper and cornmeal in a large bowl. Mix in chopped onions. Pour in milk and mix well with spoon.Heat oil in skillet on top of the stove. Drop by spoonfuls into hot oil. Cook on one side until brown and flip to cook on other side. I use a 1/4 cup measuring cup full of batter for each pattie. You can add more oil to the skillet if you need to do so while frying. Makes 10 to 12 onion patties.