How to get value entered in jQuery Input Box When Clicking on Save button of jquery dialog box.

```
window.parent.$('#divDialog')
  .attr('title', 'Edit ATM Details')
  .html('<table><tr align="center"><td align="center">Enter ATM ID &nbsp;</td><td align="center"><input id="txtEditATM" name="txtEditATM" type="text" /></td></tr></table>')
  .dialog({
     buttons: {
              "Save": function() {
                                 var atmid = $('#txtEditATM').val();
                                 //Next Processing Done Here
                                 }
              }
   });

```