Begin by finely chopping the onions. You can soak them in cold water for a few minutes to reduce their sharpness if desired. Drain and set aside.
In a mixing bowl, combine the all-purpose flour, cornmeal, baking powder, salt, black pepper, and garlic powder. Mix well.
In a separate bowl, whisk together the eggs and milk until smooth.
Pour the wet ingredients into the dry ingredients and stir until just combined. Do not overmix; it’s okay if there are a few lumps.
Gently fold in the chopped onions until they are evenly coated with the batter.
Heat oil in a frying pan or deep fryer over medium heat until it reaches 350°F (175°C).
Carefully drop spoonfuls of the onion batter into the hot oil. Do not overcrowd the pan. Fry until golden brown, about 3-4 minutes on each side.
Use a slotted spoon to flip and remove the fritters from the oil. Place the fried fritters on paper towels to drain excess oil.
Serve warm with a dipping sauce of your choice, such as ranch dressing or a tangy dipping sauce.