In the below code when the play button is clicked Its value should be changed to pause and when pause is clicked the other function should be called .How to do this using jq
$('#play_button_id').toggle(play,play_pause);
this will trigger the play() function when you click the button for the first time
and the play_pause() when you click the button for the second time