views:

27

answers:

0

Hello, I am using a jQuery UI dialog box and have some textboxes. When a user clicks on a textbox a modal dialog box opens with a loaded HTML file using the .load option. Is there a easy way to get the response from the child HTML file, which is a drop down box on some kind of change event. Below is a sample of me trying to get the response when a user changes the value from the parent page but it doesn't seem to work.

$("#os3").change(function() { var text = $(this).val(); $(this).closest(".ui-dialog-content").dialog("close"); alert(text); });

To give a bit more background, we are going to have multiple textboxes and a lot of the textboxes will call the same HTML file via the jQuery dialog .load option.

Thank you, Matthew