Cursor appear on search box click

Just want some direction really.Want my search box to have text inside, but when it is clicked, it clears it and allows the user to start typing.How is this achieved? jQuery?Anyone got any useful links...