$(function() { $('input[type=text]').focus(function() { $(this).val() == ''; }); });
$(this).val('')
看看jQuery API并搜索’val’