長いフォームの色を制御しようとしています。ユーザーが変更を加えた場合にのみ、フォーカス (既に行われている) とぼかしの入力色の変更が必要です。出来ますか?
ここに再生する例があります: http://jsfiddle.net/pEqvK/
$(function(){
$('input').css("color", "grey"); //initial value
$("input").focus(function () {
$(this).css("color", "black");
});
$("input").blur(function () {
// if it changed $(this).css("color", "black");
// if it nas NOT changed $(this).css("color", "grey");
});
});