How can I achieve the same effect like twitter\'s log-in form (the top on the right) - when you click on the username/pass the value \"username\" stays there until you enter tex
Thanks Garry. To eliminate the time lag in between user's typing and fading of default text, you can replace the focus function given above with following function
function focus() {
if ($(this).val()) hide();
else show();
};