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 jquery toggle
<input type="button" onclick ="play" value="play"/>
<script>
function play()
{
play_int();
// Button value to be changed to pause
}
And when pause play_pause();