In a medium bowl, whisk together the cornmeal, flour, sugar, baking powder, garlic powder, onion powder, salt, and black pepper.
1 cup cornmeal, ½ cup all-purpose flour, 2 tablespoons granulated sugar, 2 teaspoons baking powder, ½ teaspoon salt, 1 teaspoon garlic powder, 1 teaspoon onion powder, ¼ teaspoon black pepper
In a separate bowl, whisk the milk and egg. Stir in the melted butter and diced onion.
½ cup buttermilk, 1 large egg, ½ cup finely diced white onion, 1 tablespoon unsalted butter
Pour the wet ingredients into the dry ingredients and stir just until combined. Let the batter rest for 5 to 10 minutes.
Heat 2 to 3 inches of oil in a deep skillet or Dutch oven to 350°F.
Scoop the batter using a 1-tablespoon cookie scoop or two spoons and carefully drop into the hot oil.
Fry in batches for 2 to 4 minutes or until the hush puppies are golden brown and cooked through.
Use a slotted spoon to transfer the hush puppies to a wire rack placed over a paper towel-lined baking sheet. Serve warm.