I can’t guess what the resultant HTML looks like. Most of the interesting parts (<option>s and Ajax responses) are generated with PHP code.
The purpose of a jsfiddle demo is to show the code in question running. You would have to fake the Ajax calls, and use the view source of the problem area, not the PHP source.
I can’t tell what data is. Is it really what you think it is?
You need to debug your code by adding console.log calls and adding breakpoints with the debugger built into the browser. (there are lots of video tutorials on the net)