3
鑑於這種jQuery的:最接近的jQuery()不是爲我工作(或我不工作的話)
$('div.MvcFieldWrapper :input').focus(function() {
$(this).closest('label.MvcDynamicFieldError').fadeOut();
});
而鑑於此HTML:
<div class="MvcFieldWrapper">
<label class="MvcDynamicFieldPrompt">Enter your email address:</label>
<label class="MvcDynamicFieldError">Required</label>
<input type="text" value="" />
</div>
爲什麼標籤不褪色當我專注於輸入?我確定知道焦點事件正在發生。
感謝
+1你是一個男人,Neiner :) – Sampson 2010-01-31 06:29:32
@Jonathan我知道你在上,所以我不得不打字超快,經常發帖:) – 2010-01-31 06:31:00