I have been trying to call a javascript function within a jquery dialog box, which I have been successful at. The complication comes when I create a dynamic form within the dialog box by passing in data from a listbox to a php page that calls the database. I am trying to first, disable the second dropdown when a value in the first dropdown is selected. Secondly, I would like to validate a textbox to see if a username exists.
I have created a JSbin http://jsbin.com/etuhur/4/edit but I am not sure how to replicate the PHP portions. The current JSbin is working in regards to the first dropdown disabling the second dropdown. I am unable to replicate this functionality when the form is created by a php page that I pass into the dialog box.
Does anyone have any tips, pointers or an example? I have been trying to get this to work for the past two weeks, but to no avail :(
EDIT : I think it has something to do with the DOM not recognizing the PHP form data being created by another page, does anyone know how I would have it register with the DOM?