私はtextfield
を持っていますが、textfield
がhold three charactes
でない場合、送信ボタンを無効にしています。私が今したいことは、textfield
太字の赤いの輪郭であり、まだsubmit
ボタンが無効になっていますが、textfield
の概要と同時にサブミットbutton
を無効にできないようです。エラーを表示するjQueryアウトラインのテキストフィールド
送信ボタンを無効にするためのコードは次のとおりですtextfield
この機能のlength is < 3
は?
任意のヘルプ
$(function() {
$('input[name="updateMessage"]').attr('disabled','disabled');
$('input[name="selectMessageForUpdate"]').keyup(function(){
if($('input[name="selectMessageForUpdate"]').val().length < 3)
{
$('input[name="updateMessage"]').attr('disabled','disabled');
}
else
{
$('input[name="updateMessage"]').removeAttr('disabled');
}
});
});
を、これは、ボタンのために動作しますが、私は概要を説明したいと思いますはいああ'textfield'文字が' <3' @andreasの場合 – CodersSC
ok私の答えを編集しました –
hmmこれはまだ動作しません:/ – CodersSC