{"id":15157480,"date":"2021-12-13T10:39:37","date_gmt":"2021-12-13T10:39:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hide-show-toggle-affecting-all-fields\/"},"modified":"2021-12-13T10:39:37","modified_gmt":"2021-12-13T10:39:37","slug":"hide-show-toggle-affecting-all-fields","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hide-show-toggle-affecting-all-fields\/","title":{"rendered":"hide\/show toggle affecting all fields"},"content":{"rendered":"<p>Hello, working on next feature to show\/hide description in .comment_area,<br \/>\nThere is<br \/>\na fieldset-fieldname1<br \/>\nwith .comment_area-fieldname2 (custom class hidedesc) which is hidden on document load<br \/>\nand button-fieldname3 with code jQuery(&#8216;.comment_area&#8217;).closest(&#8216;.hidedesc&#8217;).toggle()<\/p>\n<p>The fieldset-fieldname1 is duplicated multiple times and on button press it shows .comment_area in all fieldsets, i need to modify it to show .comment_area only in related fieldset. <\/p>\n<p>Could you please guide me what is wrong?)<\/p>\n","protected":false},"template":"","class_list":["post-15157480","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15157480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15157480\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15157480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}