返回首页

您好,我需要小的援助,

如何在JavaScript编程的文本框数据


和我的样本代码是

text: ghost.children(".ghost-content").html()+"--"+Some textbox  Content"
 60;在此行中,我需要得到一些TextBox的内容,这是写,所以请给我一个主意,让这个

感谢q

回答

评论会员:游客 时间:2012/02/07
koolprasad2003:以下JavaScript功能,让你的文本框数据codeprelang="Javascript"spanclass="code-keyword"function/spangetData(){alert(document.getElementById(spanclass="code-string""/spanspanclass="code-string"textBoxName"/span).value)}/pre/code
member60
评论会员:游客 时间:2012/02/07
尝试:codeprelang="HTML"vartext=document.getElementById('spanclass="code-pagedirective"<%/span=txtbox1.ClientIDspanclass="code-pagedirective"%>/span').value;/pre/code先学习javscript的基础知识以及如何调用JS函数,有以下,你可能会得到一些想法imgsrc={A1}]
使用下面的JavaScript代码:
{体C3}
评论会员:AbhiramKA 时间:2012/02/07
("TextBoxID")
评论会员:拉朱melveetilpurayil 时间:2012/02/07
{的C4}如果您正在使用JQuery

{C5的}
评论会员:koolprasad2003 时间:2012/02/07
{5233}致电以上从ASPX页面的功能。这里是一个例子,
{C7-}