![]() |
Sergey Kornilov admin 8/10/2022 |
Check this article for inspiration: |
R
|
rmac author 8/11/2022 |
Thank you! Very inspirational, and all seems to work up until the very last part. I modified the code as below: **JS** <?php If I fix the input on the PHP script (ie $Floor = ('S5');) I get the expected result back in the browser. ["16","15","14","13","12","11","8","0"]. But in the application, although it clears the original data in the hgts lookup and inserts the correct number of rows in the dropdown, the rows are always blank. I'm sure I'm missing something related to data formatting, but nothing I've tried has given me any hints. I'm sure someone wise in the ways of jQuery can give me a clue. Once it's working, I'll add comments to the Tips and Tricks article to point out issues not so obvious to a JS/ jQuery newb. TIA. |
![]() |
Sergey Kornilov admin 8/11/2022 |
I'm glad you are making progress! Unfortunately, it is not easy to tell what exactly is wrong by just looking at the code. You need to step though your Javascript code, step by step, inspect variable values to see what exactly is not working. Here is a video that can help you with this task. |
R
|
rmac author 8/11/2022 |
Got it. I goofed up the <option value syntax. I changed the line to |