# HTML - Enable Textbox with Radio Button

**URL:** <https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801>\
**Category:** Developing Nodes\
**Created:** [7 June 2021 09:29 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801 "2021-06-07T09:29:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkayan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hkayan/32/42713_2.png) [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Post date:** [7 June 2021 09:29 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/1 "2021-06-07T09:29:38Z")

</div>

Hi,

I would like to enable the textbox according to selected radio button (these are located in node properties box). Normally, I would do this via **JQUERY** , but I have no idea how can I do this in Node-RED.  
 ![htmlissue](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/c/6c8d43c4487cfa661c630bf4bcc5785f2613ab7e.png)  
So in this case, if user selects **Local Name** and put some text on the text box, I will get that data in my {customnode.js} file.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 June 2021 09:41 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/2 "2021-06-07T09:41:20Z")

</div>

Is this a custom contrib node you are developing?

---

<div class="post-metadata">

**Author:** ![hkayan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hkayan/32/42713_2.png) [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Post date:** [7 June 2021 09:42 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/3 "2021-06-07T09:42:09Z")

</div>

@Steve-Mcl Yes.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 June 2021 09:47 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/4 "2021-06-07T09:47:06Z")

</div>

then you can use JQuery (it is included with the node-red editor)

Better still, use the [typedInput widget](https://nodered.org/docs/api/ui/typedInput/) e.g...

![70nmpNJSF7](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/938488ed1f0493db765a053812294c5b10493206.gif)

_PS: I will move this thread to the correct forum category._

---

<div class="post-metadata">

**Author:** ![hkayan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hkayan/32/42713_2.png) [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Post date:** [7 June 2021 10:02 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/5 "2021-06-07T10:02:20Z")

</div>

@Steve-Mcl Thanks. But it seems that radio buttons are not supported?

[Node edit dialog : Node-RED](https://nodered.org/docs/creating-nodes/edit-dialog). I can't see them here.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 June 2021 10:05 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/6 "2021-06-07T10:05:44Z")

</div>

> [@hkayan](#):
>
> But it seems that radio buttons are not supported?

Of course they are supported, its just HTML + JQuery

However, if you want dynamic input capability (i.e. permitting the user to send the "name" in a msg property (like `msg.name` or `msg.payload`) then the "made for this purpose" `typedInput` is a much better solution.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 June 2021 10:06 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801/7 "2021-06-21T10:06:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
