# Highlighting / Selecting a junction node in the workspace

**URL:** <https://discourse.nodered.org/t/highlighting-selecting-a-junction-node-in-the-workspace/85023>\
**Category:** Core Development\
**Created:** [29 January 2024 14:23 UTC](https://discourse.nodered.org/t/highlighting-selecting-a-junction-node-in-the-workspace/85023 "2024-01-29T14:23:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [29 January 2024 14:23 UTC](https://discourse.nodered.org/t/highlighting-selecting-a-junction-node-in-the-workspace/85023/1 "2024-01-29T14:23:48Z")

</div>

Hi There,

So following up from [importing junction nodes](https://discourse.nodered.org/t/import-flow-view-nodes-no-indication-of-duplication-for-junction-nodes/85013), I've gone into the weeds and want to highlight a junction node. (Long story but I now have a list of duplicate nodes including junctions.)

Something like

```auto
RED.view.select("<junction node id>")
-- or
RED.view.reveal("<junction node id>")

```

This works fine for everything else that has an id except for junction nodes. So I thought, ok I'll do this with jQuery:

```auto
$('#<junction node id>').trigger('click')

```

To my surprise, I noticed that the markup for a junction node looks like this:

```auto
<g>
  <g class="red-ui-flow-junction" transform="translate(897.6967769861221,528.75)">
    <rect class="red-ui-flow-junction-background" x="-5" y="-5" width="10" height="10" rx="3" ry="3"></rect>
    <rect class="red-ui-flow-junction-port red-ui-flow-junction-port-input" x="-5" y="-5" width="10" height="10" rx="3" ry="3"></rect>
    <rect class="red-ui-flow-junction-port red-ui-flow-junction-port-output" x="-5" y="-5" width="10" height="10" rx="3" ry="3"></rect>
  </g>
</g>

```

Wait, what no id!?! Normally the top-level `<g>` has the id but not for a junction node.

Anyway, question is: is there a reason that junction nodes have no id? Is there a deeper no-go for not attaching the id to the `<g>`?

I can imagine there hasn't been a use-case for highlighting junction nodes, so it's probably something that has never been needed. Would there be interest in changing that?

Cheers!

---

<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:** [29 March 2024 14:23 UTC](https://discourse.nodered.org/t/highlighting-selecting-a-junction-node-in-the-workspace/85023/2 "2024-03-29T14:23:56Z")

</div>

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