以下のようなコードを作成して、inputに値を入力してenterを押すと通常、actionが実行されると思うのですが
何も反応いたしません。
html
1<form id="login" class="login-form action="**.html" method="POST"> 2 <input type="hidden" name="login" value="login_catch"> 3 <input type="text" name="loginname" id="login_username" class="register_text" placeholder="ユーザ名"/> 4 <input type="password" name="loginpw" id="login_pass" class="register_text" placeholder="パスワード"/> 5 <button form="login" class="login_button" type="button" name="">ログインする</button> 6 <div class="login-errmsgbox"></div> 7 <p class="message message_wrapper" tabindex="0">無料でアカウントを作成する</p> 8</form>
シンプルに以下のようなコードの場合、enterを押すと適切にactionが実行され遷移いたします。
html
1<form method="post" action="**.html" id="hoge"> 2 <input type="text" name="user"> 3 <input type="text" name="pass"> 4</form> 5<button form="hoge" type="submit">push</button>
原因と解消法がわからなかったため、ご相談させてください。
よろしくお願い申し上げます。
回答5件
あなたの回答
tips
プレビュー