$(document).ready(function() {
   
    var clearMePrevious = '';

	// clear input on focus
	$('#s').focus(function()
	{
		if($(this).val()==$(this).attr('value'))
		{
			clearMePrevious = $(this).val();
			$(this).val('');
		}
		
	});
	
	// if field is empty afterward, add text again
	$('#s').blur(function()
	{
		if($(this).val()=='')
		{
			$(this).val(clearMePrevious);
		}
	});

});


