Meanwhile, in a saucepan, melt the butter. Add the onions and jalapeños and cook over moderate heat until the onions are just softened, 5 minutes. Add the wine and 1 tablespoon of the vinegar and season with salt and ground pepper. Add 2 cups of water and bring to a simmer. Cover and cook over low heat until the onions are very tender, 40 minutes.