function remitFail(code){
$( "#dialog").dialog( "destroy" );
$( "#dialog-confirm-info").html("<textarea rows='4' cols='40'id='reason'></textarea>");
$( "#dialog-confirm" ).dialog({
title:'失败原因',
resizable: false,
height:200,
modal: true,
buttons: { "确定": function() {
$( this ).dialog( "close" );
if(null != code && "" != code){
var url = "remitFail.action?code="+code;
alert($("#dialog-confirm-info").children("#reason").text()) //window.location.href = url;
}else{
alert("操作失败,编号不能为空.");
}
},
"取消": function() { $( this ).dialog( "close" );}}
});
}在textarea中输入内容后,红色字体部分获取不到值。大家帮忙看看什么原因。谢谢了。
解决方案 »
- 菜鸟求解。。不论高手低手,能回答问题的都是好手!
- 求:js 返回dom对象的css的left和top值的代码?
- 一个在firefox下打开本地文件的思路^_^
- 请问,如果用JS实现将一个表的数据移到另一个表中
- 怎么用JavaScript实现字符串截取
- 类不能支持Automation操作?
- 如何实现点击一个图片按钮后,按钮变成另一个图片?
- 问题:如何在页面上作序号的增加
- 请问"IFRAME" 子页 如何控制 父页元素 ?????????????????! 急!!!
- 能够提供一个javascript,可以打开一个窗口,并确保在使用的时候,用同一个窗口
- 如何取到html自定义tag的值,用this.tag不行
- js取servlet传过来的参数问题
textarea元素的值必须得通过.val()才能取到,.text()返回为空值。