LOL, we need to teach you how to debug…
So, whenever a step is not working, you need to back up one step and display the data just before
going into the step that fails. So, in this case, we need to see if my just created JQuery routine
works as it should. So, we know that the drop-down works. We know how it handles the values.
We know that the button works as it loaded the file without the added IP part.
Now, to debug this, we need to create an “ALERT” in the JQuery code. In this manner, we can see if it
is loading the correct name for the file. So, add an alert line in the code like below. Note that if you
need to debug PHP, you would just use a “DIE(something);” line, but, in JS or JQuery, you use “alert();”…
Just have to figure out what I did wrong in pulling the data out of the form…
EDIT: So, I found that sometimes the “child” option doesn’t work. So, they say to try “VAL” instead.
(I changed it to that to see if it works…)
So, change the JQuery like this and tell me what it shows…
[php]
[/php]
Note: as you see it should pop-up an alert that shows the value inside of the dropdown.
*** PLEASE notice my EDIT. Several sites say to use the .val instead of .children…***