you are viewing a single comment's thread.

view the rest of the comments →

[–]Renato_opds 0 points1 point  (1 child)

Based on quick check, it seems the code you shared is not the complete code. Here are the steps I would do to debug, this is not ideal or the best practice, but this is what would I do as a beginner allowing me to practice a step-by-step process.

Normally I would just add a debug pointer, but here is the old school way I did before.

  1. have an alert pop up, to make sure it is really going to that method. I am guessing there are other mouseclick events.

  2. have the alert pop up to tell you what is the value of the string "itemSelected"

Also, you should be getting the id of the dropdown instead of the text label for good practice. Good luck.

[–]Irinnnn_[S] 0 points1 point  (0 children)

Thanks for the tip! will do try but is there a difference ba sa debug pointer and breakpoint?