Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/1/ukgadokikaku/web/adokikaku.com/dev.adokikaku.com/wp-includes/formatting.php on line 4382 Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/1/ukgadokikaku/web/adokikaku.com/dev.adokikaku.com/wp-includes/formatting.php on line 4382 Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users
jQueryで $.ajax $.post $.get を使う際、 毎回作っているformのデータを抽出する関数です。 function getPostData(selector) { var postData = {}; $(selector).find(':input').each(function(){ if ($(this).attr("type") == 'checkbox' || $(this).attr("type") == 'radio') { if ($(this).is(":checked")) { postData[$(this).attr('name')] = $(this).val(); } } else { postData[$(this).attr('name')] = $(this).val(); } }); return postData; }
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く