{"id":16020734,"date":"2022-09-18T12:11:10","date_gmt":"2022-09-18T12:11:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-buttons-to-increase-decrease-the-value\/"},"modified":"2022-09-18T12:11:10","modified_gmt":"2022-09-18T12:11:10","slug":"using-buttons-to-increase-decrease-the-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-buttons-to-increase-decrease-the-value\/","title":{"rendered":"Using buttons to increase\/decrease the value"},"content":{"rendered":"<p>Hi,<\/p>\n<p>What is the most straightforward way to add -\/+ buttons around or next to the number field? <\/p>\n<p>I already added the buttons, wrote the OnClick functions that increase and decrease the value by one when clicked. However, with this solution the calculation isn&#8217;t working properly. I guess my solution isn&#8217;t the correct one. Do you have some ready solution for this kind of need?<\/p>\n<p>And thank you for the awesome plugin!<\/p>\n","protected":false},"template":"","class_list":["post-16020734","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16020734","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\/16020734\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16020734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}