I know that there must be a way to do this--but darned if I can figure it out. There's certainly a way to do this with the jQuery package, but in the grand tradition of the Internet, trying to find a simple example is pretty much impossible. No, it doesn't need to do fifteenzillion amazing things when you click on the buttons--I just need the ability to control the text for 2 or 3 buttons, and return to the caller a value indicating which button got pushed.
In C#, or Java, this would be trivial.
UPDATE: A reader pointed me to this solution, which looks perfect.