Skip to content

Instantly share code, notes, and snippets.

@fukaz55
Created April 15, 2011 11:38
Show Gist options
  • Save fukaz55/921567 to your computer and use it in GitHub Desktop.
Save fukaz55/921567 to your computer and use it in GitHub Desktop.
// jQueryでpostというフォームのaという名前のラジオボタンの値が1の項目を選択する
$('form#post [name=a][value=1]').attr('checked','checked');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment