2014-08-11から1日間の記事一覧

jQueryで、Enterを押したときに次/前のコントロールにフォーカスを移す

<html> <script src="http://www.google.com/jsapi"></script><script>google.load("jquery", "1");</script> <script> $(function(){ $(document).keyup(function(e){ if (e.keyCode == 13 && e.shiftKey == false) { $(document.activeElement).nextAll("input:first").focus(); } else if (e.keyCode == 13 && e.shiftKe…</html>