button toggles between states
<p>I was wondering if anyone knew of some code which implements two buttons where one is just plain text and the other is say a link. When the user clicks on the link the other text becomes a button and vice versa when the user clicks the link again.</p>

<p>Think of it like this: One link is active the other isn't. One is a listview link and the other is a gridview text and when you click listview that link becomes text and the gridview text becomes a link. Does anyone know of an example that implements this kind of behavior or can someone show me an example in jQuery?</p>
