<script type="text/javascript"> $(window).load(function() { $('input,select').on('keypress', function(ev){ var $me = $(this); var $list = $('input:enabled:not([readonly]),select:enabled'); if (ev.keyCode == 13) { $list.each(function(index){ if ($(this).is($me)) { $list.eq(index+1).focus(); ev.preventDefault(); } }); } }); }); </script>
途中でフォーカスが移動しなくなるのですが、解決方法がわかりません。
回答1件
あなたの回答
tips
プレビュー