// 如果輸入内容為空
var captionTxt = $(".caption").text();
if(!inputContent){
$(".caption").text("請輸入内容").animate({opacity: 1.25}, 3000, function(){
$(this).text(captionTxt);
});
$("#inputContentArea").val("").focus();
return;
}
DEMO
// 如果輸入内容為空
var captionTxt = $(".caption").text();
if(!inputContent){
$(".caption").text("請輸入内容").animate({opacity: 1.25}, 3000, function(){
$(this).text(captionTxt);
});
$("#inputContentArea").val("").focus();
return;
}
DEMO