Preheat the oven: Preheat your oven to 400°F (200°C). Grease an 8-inch square baking pan with butter or cooking spray.
Mix dry ingredients: In a large bowl, whisk together cornmeal, flour, baking powder, salt, and sugar until well combined.
Mix wet ingredients: In a separate bowl, whisk together buttermilk, eggs, and melted butter.
Combine ingredients: Pour the wet mixture into the dry ingredients. Stir gently until just combined. Avoid overmixing the batter.
Add jalapeños: Fold in the chopped jalapeños and shredded cheddar cheese, if using.
Fill the pan: Pour the batter into the prepared baking pan and spread it evenly. Add a few jalapeño slices or extra cheese on top if desired.
Bake: Bake for 20 to 25 minutes, or until the top is golden and a toothpick inserted into the center comes out clean.
Cool and serve: Remove from the oven and let the cornbread rest for about 10 minutes. Cut into 9 squares and serve warm with butter.