Button Split

Button Split

Hello!!

I want to use this button split: http://view.jqueryui.com/menu/demos/button/splitbutton.html

I want the options "Open", "Save" and "Delete" to call different javascript functions, but do not know how.

Thanks :)