YouTube API - how to display closed captions in my own div?

Hi guys. How can I add my own button which toggles the captions on/off?

Ive tried

 $("#show-captions").click(function(){
		 player.setOptions('captions', 1);
  });

but thats not working.
Thanks