var saveButton = new dijit.form.Button({label:"Save","class":"saveButton"}); dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "after"); dojo.connect(saveButton, "onClick", function(){ updateFeature.getLayer().applyEdits(null, [updateFeature], null); map.infoWindow.hide(); });