{"id":508,"date":"2022-08-30T15:02:31","date_gmt":"2022-08-30T15:02:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/jquery-getting-value-of-checked-radio-button-why-is-this-not-working-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:02:31","modified_gmt":"2022-08-30T15:02:31","slug":"jquery-getting-value-of-checked-radio-button-why-is-this-not-working-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-getting-value-of-checked-radio-button-why-is-this-not-working-collection-of-common-programming-errors\/","title":{"rendered":"JQuery, getting value of checked radio button, why is this not working?-Collection of common programming errors"},"content":{"rendered":"<p>I am trying like below to get the value of a checked radio button but it just keeps giving undefined. I am using Firefox on Ubuntu so I don&#8217;t know if its some weird quirk of the browser or what, I would appreciate any advice as this is driving me crazy:<\/p>\n<pre><code>            \n                \n\n\nalert($('input[name=tagRow_ddd]:checked').val())\n<\/code><\/pre>\n<p>Jfiddle: http:\/\/jsfiddle.net\/fD7fP\/6\/<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 20:02:07. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying like below to get the value of a checked radio button but it just keeps giving undefined. I am using Firefox on Ubuntu so I don&#8217;t know if its some weird quirk of the browser or what, I would appreciate any advice as this is driving me crazy: alert($(&#8216;input[name=tagRow_ddd]:checked&#8217;).val()) Jfiddle: http:\/\/jsfiddle.net\/fD7fP\/6\/ Originally [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/508\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}