Using the the return event in a jQuery dialog
In IE, event.target.innerText works and returns text that was typed in by the user. I need this to work in all browsers...of course :) Can someone show me how to get this to work in all browsers, so I know what the user typed in and can save it. I'm using ASP.Net and trying to save the information server side is the reason I put the returned text into a hiddenBasicInformationComments textbox (which is set to run at server). If anyone sees a better way to do what I want, please don't hesitate to let me know.
- $("#divbasicInformationComments").dialog({
autoOpen: false,
show: "blind",
width: 500,
height: 480,
draggable: false,
position: 'center',
modal: true,
close: function (event, ui) {
$(".hiddenBasicInformationComments").val(event.target.innerText);
},
open: function (type, data) {
$(this).parent().appendTo("form:first");
}
});