# Radio Button's option() method works weird.

**URL:** <https://discourse.processing.org/t/radio-buttons-option-method-works-weird/26303>\
**Category:** p5.js\
**Created:** [December 16, 2020, 4:25pm UTC](https://discourse.processing.org/t/radio-buttons-option-method-works-weird/26303 "2020-12-16T16:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javalab](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@javalab](https://discourse.processing.org/u/javalab)\
**Post date:** [December 16, 2020, 4:25pm UTC](https://discourse.processing.org/t/radio-buttons-option-method-works-weird/26303/1 "2020-12-16T16:25:14Z")

</div>

In the case of radio buttons, the parameters of the option() method are applied interchangeably.  
This error is occurring in the latest version of p5.js.  
To see what the error occurs, refer to the url below.

[https://p5js.org/en/reference/#/p5/createRadio](https://p5js.org/en/reference/#/p5/createRadio)

In the second example, the amount is displayed where the name of the food should appear.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [December 16, 2020, 4:31pm UTC](https://discourse.processing.org/t/radio-buttons-option-method-works-weird/26303/2 "2020-12-16T16:31:48Z")

</div>

> <https://github.com/processing/p5.js/issues/4948>
>
> Most appropriate sub-area of p5.js?
> Accessibility (Web Accessibility)
> Build tools and processes
> Color
> Core/Environment/Rendering
> Data
> DOM
> Events
> Friendly error system
> Image
> ...
