# Clickable dropdown menu

**URL:** <https://discourse.processing.org/t/clickable-dropdown-menu/17668>\
**Category:** Coding Questions\
**Created:** [February 9, 2020, 5:03pm UTC](https://discourse.processing.org/t/clickable-dropdown-menu/17668 "2020-02-09T17:03:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rihab](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rihab](https://discourse.processing.org/u/rihab)\
**Post date:** [February 9, 2020, 5:03pm UTC](https://discourse.processing.org/t/clickable-dropdown-menu/17668/1 "2020-02-09T17:03:26Z")

</div>

Hi  
I want to make a clickable dropdown menu but I find some problems

```auto
function setup() {
  textAlign(CENTER);
  //background(200);

  sel = createSelect();

  sel.position(11.5, 12 );
  sel.size(39, 39)

 sel.option('A');
  sel.option('Nom');
  sel.option('Pénom');
 sel.option('Société');
 
sel.changed(mySelectEvent);
}

function mySelectEvent() {
 createA('http://p5js.org/', 'this is a link');
  }

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 10, 2020, 11:44pm UTC](https://discourse.processing.org/t/clickable-dropdown-menu/17668/2 "2020-02-10T23:44:39Z")

</div>

Can you please post your entire runnable code

Prior to posting hit ctrl-t to auto format in processing

---

<div class="post-metadata">

**Author:** ![black](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/black/32/477_2.png) [@black](https://discourse.processing.org/u/black)\
**Post date:** [February 11, 2020, 3:04pm UTC](https://discourse.processing.org/t/clickable-dropdown-menu/17668/3 "2020-02-11T15:04:27Z")

</div>

What is the problem? This codes works perfectly fine.
