jquery toggle button value
<p>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</p>

<pre><code>  &lt;input type="button" onclick ="play" value="play"/&gt;
   &lt;script&gt;
     function play()
     {
               play_int();
           //   Button value to be changed to pause
     }   

  And when pause play_pause();
</code></pre>
