STEP 2 - if文を使って条件分岐
if文を使って条件分岐しています。
jQuery Code
$(function() {
$(".textbox").focus(function(){
if( $(".textbox").val() == "お名前" ){
$(".textbox").val("");
}
}).blur(function(){
if( $(".textbox").val() == "" ){
$(".textbox").val("お名前");
}
});
});