在java脚本中检索Inputformtextbox的值 [英] Retrieve the value of a Inputformtextbox in java script
本文介绍了在java脚本中检索Inputformtextbox的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在webpart中有一个inputformtextbox。我需要在单击预览按钮后在弹出窗口中显示该inputformtextbox的值。
所以我调用java脚本函数来获取值。
我正在使用...
document.getelementbyid(< controlname>)。value。
但它的返回空白。
如果它是文本框,然后我得到了价值。但它不适用于Inputformtextbox。
请帮帮我。感谢adv。
I have a inputformtextbox inside a webpart.I need to show the value of that inputformtextbox in a popup after clicking the preview button.
So I am calling a java script function to get the value.
I m using...
document.getelementbyid(<controlname>).value.
But its returning blank.
If its a textbox,then I m getting the value. But its not working in the case of Inputformtextbox.
Please help me out. Thanks in adv.
推荐答案
使用以下函数从InputFormTextBox中检索值:
var text = RTE_GetRichEditTextOnly("<% = InputFormTextBox.ClientID%>");
- Jignesh Gangajaliya
Use the following function to retrieve the value from InputFormTextBox:
var text = RTE_GetRichEditTextOnly("<%= InputFormTextBox.ClientID %>");
- Jignesh Gangajaliya
这篇关于在java脚本中检索Inputformtextbox的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文