2012-01-24 4 views
1

私は5つのメールフィールドを持つシンプルなフォームのウェブサイトページを持っています。私が最初のフィールドを埋めるようになると、chromeは、同じフィールドにすべてのフィールドを埋めるように提案します。私はクロームの自動入力機能を完全に無効にしたくありません(属性autocomplete="off"を追加することで可能です)。クロムがフォームのすべてのフィールドを自動入力しないようにするにはどうすればよいですか?

オートフィル機能をフィールドごとに個別に機能させることはできますか?

ここでは、フォームのコードです:

<form action="#emails" method="POST" name="sponsorship_form_email" id="sponsorship_form_email" > 
    <p> 
     <label>Email 1 : </label><input type="email" class="inputtext" name="email[]" id="1" /> 
    </p> 
    <p> 
     <label>Email 2 : </label><input type="email" class="inputtext" name="email[]" id="2" /> 
    </p> 
    <p> 
     <label>Email 3 : </label><input type="email" class="inputtext" name="email[]" id="3" /> 
    </p> 
    <p> 
     <label>Email 4 : </label><input type="email" class="inputtext" name="email[]" id="4" /> 
    </p> 
    <p> 
     <label>Email 5 : </label><input type="email" class="inputtext" name="email[]" id="5" /> 
    </p> 
    <p> 
     <input value="Invite" id="send" type="submit" /> 
    </p> 
</form> 

答えて

1

があなたの入力異なる名前を与える;)

<form action="#emails" method="POST" name="sponsorship_form_email" id="sponsorship_form_email" > 

      <p> 
       <label>Email 1 : </label><input type="email" class="inputtext" name="email1" id="1" /> 
      </p> 
      <p> 
       <label>Email 2 : </label><input type="email" class="inputtext" name="email2" id="2" /> 
      </p> 
      <p> 
       <label>Email 3 : </label><input type="email" class="inputtext" name="email3" id="3" /> 
      </p> 
      <p> 
       <label>Email 4 : </label><input type="email" class="inputtext" name="email4" id="4" /> 
      </p> 
      <p> 
       <label>Email 5 : </label><input type="email" class="inputtext" name="email5" id="5" /> 
      </p> 
      <p> 
       <input value="Invite" id="send" type="submit" /> 
      </p> 

      </form> 
+0

私が取り払わものだが、私は、電子メール[]配列を失うことを避けるためにそれを行うにはしたくありませんでした...ありがとうとにかく:) – Alexis

+0

おそらく自分で配列を作成する –