{"action":"created","comment":{"url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/comments/31359531","id":31359531,"diff_hunk":"@@ -70,6 +71,40 @@ $( \"input\" ).on( \"click\", function() {\n </form>\n ]]></html>\n   </example>\n+  <example>\n+    <desc>Determine how many input elements are checked.</desc>\n+    <code><![CDATA[\n+var countCheckedOptions = function() {\n+  var n = $( \"option:checked\" ).length;\n+  $( \"#log_option\" ).text( n + (n === 1 ? \" is\" : \" are\") + \" ':checked'!\" );\n+};\n+countCheckedOptions();\n+\n+$( \"select\" ).on( \"change\", countCheckedOptions );\n+]]></code>\n+    <css><![CDATA[\n+  #log_option {\n+    color: red;\n+  }\n+]]></css>\n+    <html><![CDATA[\n+<form>\n+  <label for=\"cities\">Cities I'd like to visit</label>\n+  <br />\n+  <select name=\"cities\" id=\"cities\" size=\"8\" multiple=\"multiple\">\n+    <option value=\"Athens\">Athens</option>\n+    <option value=\"Barcelona\">Barcelona</option>\n+    <option value=\"Chicago\">Chicago</option>\n+    <option value=\"Detroit\">Detroit</option>\n+    <option value=\"Frankfurt\">Frankfurt</option>\n+    <option value=\"London\">London</option>\n+    <option value=\"Madrid\">Madrid</option>\n+    <option value=\"Paris\">Paris</option>\n+  </select>\n+</form>\n+<div id=\"log_option\"></div>\n+]]></html>\n+  </example>","path":"entries/checked-selector.xml","position":47,"original_position":47,"commit_id":"4c7482860d0ce158e05d0b28b19b9d05834a31dd","original_commit_id":"4c7482860d0ce158e05d0b28b19b9d05834a31dd","user":{"login":"arthurvr","id":6025224,"avatar_url":"https://avatars.githubusercontent.com/u/6025224?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvr","html_url":"https://github.com/arthurvr","followers_url":"https://api.github.com/users/arthurvr/followers","following_url":"https://api.github.com/users/arthurvr/following{/other_user}","gists_url":"https://api.github.com/users/arthurvr/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvr/subscriptions","organizations_url":"https://api.github.com/users/arthurvr/orgs","repos_url":"https://api.github.com/users/arthurvr/repos","events_url":"https://api.github.com/users/arthurvr/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvr/received_events","type":"User","site_admin":false},"body":"This example is unrelated to this commit (and to the issue you're trying to fix. Also I personally don't believe it adds that much value.","created_at":"2015-05-29T20:00:27Z","updated_at":"2015-05-29T20:00:27Z","html_url":"https://github.com/jquery/api.jquery.com/pull/740#discussion_r31359531","pull_request_url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740","_links":{"self":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/comments/31359531"},"html":{"href":"https://github.com/jquery/api.jquery.com/pull/740#discussion_r31359531"},"pull_request":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740"}}},"pull_request":{"url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740","id":35274805,"html_url":"https://github.com/jquery/api.jquery.com/pull/740","diff_url":"https://github.com/jquery/api.jquery.com/pull/740.diff","patch_url":"https://github.com/jquery/api.jquery.com/pull/740.patch","issue_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/740","number":740,"state":"open","locked":false,"title":"Clarified behavior of `:checked` selector. Turned text into link to `…","user":{"login":"jhfrench","id":1501167,"avatar_url":"https://avatars.githubusercontent.com/u/1501167?v=3","gravatar_id":"","url":"https://api.github.com/users/jhfrench","html_url":"https://github.com/jhfrench","followers_url":"https://api.github.com/users/jhfrench/followers","following_url":"https://api.github.com/users/jhfrench/following{/other_user}","gists_url":"https://api.github.com/users/jhfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/jhfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhfrench/subscriptions","organizations_url":"https://api.github.com/users/jhfrench/orgs","repos_url":"https://api.github.com/users/jhfrench/repos","events_url":"https://api.github.com/users/jhfrench/events{/privacy}","received_events_url":"https://api.github.com/users/jhfrench/received_events","type":"User","site_admin":false},"body":"…:selected` selector. Added example for how `:checked` selector works with `<option>` elements. Addresses https://github.com/jquery/api.jquery.com/issues/558\r\n\r\nSee [http://jsfiddle.net/jhfrench/n3w8y41p/](http://jsfiddle.net/jhfrench/n3w8y41p/) for a working demonstration of the new example.","created_at":"2015-05-12T21:52:12Z","updated_at":"2015-05-29T20:00:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f14fee640236a9f994825e597a0de6c27a6eb35d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740/commits","review_comments_url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740/comments","review_comment_url":"https://api.github.com/repos/jquery/api.jquery.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/740/comments","statuses_url":"https://api.github.com/repos/jquery/api.jquery.com/statuses/4c7482860d0ce158e05d0b28b19b9d05834a31dd","head":{"label":"jhfrench:master","ref":"master","sha":"4c7482860d0ce158e05d0b28b19b9d05834a31dd","user":{"login":"jhfrench","id":1501167,"avatar_url":"https://avatars.githubusercontent.com/u/1501167?v=3","gravatar_id":"","url":"https://api.github.com/users/jhfrench","html_url":"https://github.com/jhfrench","followers_url":"https://api.github.com/users/jhfrench/followers","following_url":"https://api.github.com/users/jhfrench/following{/other_user}","gists_url":"https://api.github.com/users/jhfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/jhfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhfrench/subscriptions","organizations_url":"https://api.github.com/users/jhfrench/orgs","repos_url":"https://api.github.com/users/jhfrench/repos","events_url":"https://api.github.com/users/jhfrench/events{/privacy}","received_events_url":"https://api.github.com/users/jhfrench/received_events","type":"User","site_admin":false},"repo":{"id":35512729,"name":"api.jquery.com","full_name":"jhfrench/api.jquery.com","owner":{"login":"jhfrench","id":1501167,"avatar_url":"https://avatars.githubusercontent.com/u/1501167?v=3","gravatar_id":"","url":"https://api.github.com/users/jhfrench","html_url":"https://github.com/jhfrench","followers_url":"https://api.github.com/users/jhfrench/followers","following_url":"https://api.github.com/users/jhfrench/following{/other_user}","gists_url":"https://api.github.com/users/jhfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/jhfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhfrench/subscriptions","organizations_url":"https://api.github.com/users/jhfrench/orgs","repos_url":"https://api.github.com/users/jhfrench/repos","events_url":"https://api.github.com/users/jhfrench/events{/privacy}","received_events_url":"https://api.github.com/users/jhfrench/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhfrench/api.jquery.com","description":"API documentation for jQuery Core","fork":true,"url":"https://api.github.com/repos/jhfrench/api.jquery.com","forks_url":"https://api.github.com/repos/jhfrench/api.jquery.com/forks","keys_url":"https://api.github.com/repos/jhfrench/api.jquery.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhfrench/api.jquery.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhfrench/api.jquery.com/teams","hooks_url":"https://api.github.com/repos/jhfrench/api.jquery.com/hooks","issue_events_url":"https://api.github.com/repos/jhfrench/api.jquery.com/issues/events{/number}","events_url":"https://api.github.com/repos/jhfrench/api.jquery.com/events","assignees_url":"https://api.github.com/repos/jhfrench/api.jquery.com/assignees{/user}","branches_url":"https://api.github.com/repos/jhfrench/api.jquery.com/branches{/branch}","tags_url":"https://api.github.com/repos/jhfrench/api.jquery.com/tags","blobs_url":"https://api.github.com/repos/jhfrench/api.jquery.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhfrench/api.jquery.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhfrench/api.jquery.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhfrench/api.jquery.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhfrench/api.jquery.com/statuses/{sha}","languages_url":"https://api.github.com/repos/jhfrench/api.jquery.com/languages","stargazers_url":"https://api.github.com/repos/jhfrench/api.jquery.com/stargazers","contributors_url":"https://api.github.com/repos/jhfrench/api.jquery.com/contributors","subscribers_url":"https://api.github.com/repos/jhfrench/api.jquery.com/subscribers","subscription_url":"https://api.github.com/repos/jhfrench/api.jquery.com/subscription","commits_url":"https://api.github.com/repos/jhfrench/api.jquery.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhfrench/api.jquery.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhfrench/api.jquery.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhfrench/api.jquery.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhfrench/api.jquery.com/contents/{+path}","compare_url":"https://api.github.com/repos/jhfrench/api.jquery.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhfrench/api.jquery.com/merges","archive_url":"https://api.github.com/repos/jhfrench/api.jquery.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhfrench/api.jquery.com/downloads","issues_url":"https://api.github.com/repos/jhfrench/api.jquery.com/issues{/number}","pulls_url":"https://api.github.com/repos/jhfrench/api.jquery.com/pulls{/number}","milestones_url":"https://api.github.com/repos/jhfrench/api.jquery.com/milestones{/number}","notifications_url":"https://api.github.com/repos/jhfrench/api.jquery.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhfrench/api.jquery.com/labels{/name}","releases_url":"https://api.github.com/repos/jhfrench/api.jquery.com/releases{/id}","created_at":"2015-05-12T21:07:24Z","updated_at":"2015-05-12T21:07:25Z","pushed_at":"2015-05-28T15:12:56Z","git_url":"git://github.com/jhfrench/api.jquery.com.git","ssh_url":"git@github.com:jhfrench/api.jquery.com.git","clone_url":"https://github.com/jhfrench/api.jquery.com.git","svn_url":"https://github.com/jhfrench/api.jquery.com","homepage":"http://api.jquery.com","size":4387,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jquery:master","ref":"master","sha":"7ecff5dd61e6137858e063d5d352ee50ba8f127d","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":4015965,"name":"api.jquery.com","full_name":"jquery/api.jquery.com","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/api.jquery.com","description":"API documentation for jQuery Core","fork":false,"url":"https://api.github.com/repos/jquery/api.jquery.com","forks_url":"https://api.github.com/repos/jquery/api.jquery.com/forks","keys_url":"https://api.github.com/repos/jquery/api.jquery.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/api.jquery.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/api.jquery.com/teams","hooks_url":"https://api.github.com/repos/jquery/api.jquery.com/hooks","issue_events_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/api.jquery.com/events","assignees_url":"https://api.github.com/repos/jquery/api.jquery.com/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/api.jquery.com/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/api.jquery.com/tags","blobs_url":"https://api.github.com/repos/jquery/api.jquery.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/api.jquery.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/api.jquery.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/api.jquery.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/api.jquery.com/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/api.jquery.com/languages","stargazers_url":"https://api.github.com/repos/jquery/api.jquery.com/stargazers","contributors_url":"https://api.github.com/repos/jquery/api.jquery.com/contributors","subscribers_url":"https://api.github.com/repos/jquery/api.jquery.com/subscribers","subscription_url":"https://api.github.com/repos/jquery/api.jquery.com/subscription","commits_url":"https://api.github.com/repos/jquery/api.jquery.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/api.jquery.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/api.jquery.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/api.jquery.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/api.jquery.com/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/api.jquery.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/api.jquery.com/merges","archive_url":"https://api.github.com/repos/jquery/api.jquery.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/api.jquery.com/downloads","issues_url":"https://api.github.com/repos/jquery/api.jquery.com/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/api.jquery.com/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/api.jquery.com/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/api.jquery.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/api.jquery.com/labels{/name}","releases_url":"https://api.github.com/repos/jquery/api.jquery.com/releases{/id}","created_at":"2012-04-13T13:17:42Z","updated_at":"2015-05-26T15:43:37Z","pushed_at":"2015-05-29T19:55:57Z","git_url":"git://github.com/jquery/api.jquery.com.git","ssh_url":"git@github.com:jquery/api.jquery.com.git","clone_url":"https://github.com/jquery/api.jquery.com.git","svn_url":"https://github.com/jquery/api.jquery.com","homepage":"http://api.jquery.com","size":9450,"stargazers_count":165,"watchers_count":165,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":177,"mirror_url":null,"open_issues_count":60,"forks":177,"open_issues":60,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740"},"html":{"href":"https://github.com/jquery/api.jquery.com/pull/740"},"issue":{"href":"https://api.github.com/repos/jquery/api.jquery.com/issues/740"},"comments":{"href":"https://api.github.com/repos/jquery/api.jquery.com/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jquery/api.jquery.com/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/jquery/api.jquery.com/statuses/4c7482860d0ce158e05d0b28b19b9d05834a31dd"}}}}