<http://jsfiddle.net/qVfy7/>

HTML

```
<div id='button'></div>
<div id="mydiv">ko</div>

```

JS

```
$('#button').click(function () {
    $('#mydiv').text('ok');
});

```

CSS

```
#button{
    width:100px;
     height:100px;
    background-color:red;
}

```

On clicking the button, `mydiv`'s text changes. What I want to do, is clicking again on it to change the text back to `ko`, and so on, alternating between the two values. Is there a way to do that?