twitter facebook hatena google pocket Awesome jQuery snippets to work with forms | CatsWhoCode.comで紹介されていたスニペットがよさそうだったので、抜粋して紹介します。 sponsors 1:"enter"キーを無効に $("#form").keypress(function(e) { if (e.which == 13) { return false; } }); 2:checkboxがcheckされているか確認 $('#checkBox').attr('checked'); 3:formの要素を有効/無効 $("#submit-button").attr("disabled", true); $("#submit-button").removeAttr("disabled"); 4:入力され
![フォーム(form)まわりで便利なjQueryスニペット6選](https://cdn-ak-scissors.b.st-hatena.com/image/square/26e4f69fa0212112179223b1d6c3a321febc97f0/height=288;version=1;width=512/http%3A%2F%2Fwww.skuare.net%2Fassets_c%2F2012%2F10%2Fformsni-thumb-660x300-829.jpg)