# Dropdown. Next step. Debugging HELP NEEDED

**URL:** <https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 30, 2018, 3:45pm UTC](https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774 "2018-01-30T15:45:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![serdar-yagshimuradov](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/serdar-yagshimuradov/32/1446_2.png) [@serdar-yagshimuradov](https://forum.wixstudio.com/u/serdar-yagshimuradov)\
**Post date:** [January 30, 2018, 3:45pm UTC](https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774/1 "2018-01-30T15:45:36Z")

</div>

Hey there,

Just recently I was trying to make a dropdown meny and thanks to WIX support (and Mike Spirin, hope you help me man with this), I made it, it’s very good. I made it but the day after I open my dashboard and I receive this Debugging, once I choose the page I need from dropdown:

1Loading the code for the 1 page. To debug this code, open vpobg.js in Developer Tools.

2Loading the code for the 2 page. To debug this code, open skexg.js in Developer Tools.

3Loading the code for the 3 page. To debug this code, open axf62.js in Developer Tools.nlmk

I was trying to debug all the mistakes with brakets, spaces and etc., but it helped only with limited effect. But this remaining stuff, is a sort of imposible things to handle. I was trying to JSHINT and that’s what it told me:

#### Metrics

There are **2** functions in this file.  
Function with the largest signature take **1** arguments, while the median is **0.5**.  
Largest function has **5** statements in it, while the median is **3**.  
The most complex function has a cyclomatic complexity value of **4** while the median is **2.5**.  
One warning2’arrow function syntax (=\>)’ is only available in ES6 (use ‘esversion: 6’).

Guys, help needed!!!

---

<div class="post-metadata">

**Author:** ![serdar-yagshimuradov](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/serdar-yagshimuradov/32/1446_2.png) [@serdar-yagshimuradov](https://forum.wixstudio.com/u/serdar-yagshimuradov)\
**Post date:** [January 30, 2018, 3:58pm UTC](https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774/2 "2018-01-30T15:58:25Z")

</div>

That’s the code:

import wixLocation from ‘wix-location’;  
$w.onReady(function () {  
$w(“#dropdown1”).onChange((event) =\> {  
console.log(event.target.value);  
if(event.target.value===‘tatn’) {  
wixLocation.to(‘/page1’);  
} else  
if(event.target.value === ‘dixy’) {  
wixLocation.to(‘/page2’);  
} else  
if(event.target.value === ‘nlmk’) {  
wixLocation.to(‘/page3’);  
}  
});  
});

---

<div class="post-metadata">

**Author:** ![ohad-laufer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ohad-laufer/32/669_2.png) [@ohad-laufer](https://forum.wixstudio.com/u/ohad-laufer)\
**Post date:** [January 31, 2018, 9:52am UTC](https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774/3 "2018-01-31T09:52:16Z")

</div>

Hi,  
These messages are harmless. They direct you how to debug your code if you need to. If everything works - please disregard it.

---

<div class="post-metadata">

**Author:** ![serdar-yagshimuradov](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/serdar-yagshimuradov/32/1446_2.png) [@serdar-yagshimuradov](https://forum.wixstudio.com/u/serdar-yagshimuradov)\
**Post date:** [January 31, 2018, 10:59am UTC](https://forum.wixstudio.com/t/dropdown-next-step-debugging-help-needed/27774/4 "2018-01-31T10:59:49Z")

</div>

Yes it works. Thankfully. It just pops out from time to time when preview web interface.  
Generally okay. No mistakes and in real time everything seems to be quite smooth.

Thank you in any case.
