用于从datagrid中选择值的Java脚本函数,并且该值显示在文本框中? [英] java script function for selecting the value from datagrid and that value is display in textbox?
问题描述
我正在使用datagrid显示用户信息,并且我将复选框列放入datagrid中,并且我使用了一个文本框,并且textmode是多行的.我正在将contactname,mobileno ......等列添加到datagrid.
我的目的是当我选择复选框以在文本框中显示行mobileNO值,然后再次选择另一个复选框以行逗号也显示在文本框中行mobileNO,并且取消选中该复选框时,行mobileNO将从文本框中删除.
如何编写javascript函数来做到这一点.请提供示例代码.我不知道如何编写javascript函数
请给一个解决办法
谢谢.
i am using datagrid to display user information and i take checkbox column into the datagrid and i take one textbox and textmode is multiline. i am taking contactname, mobileno...... etc columns to the datagrid.
my aim is when i select checkbox that row mobileNO value is display in Textbox and again i select another checkbox that row mobileNO is also display in textbox with comma seperation, and i deselect checkbox that row mobileNO is deleted from textbox.
how to write javascript function todo this. please give a sample code. i am not know how to write javascript functions
please give a solution
Thanks.
推荐答案
在不知道您的元素ID的情况下,我们不能只为您编写JavaScript.
如果您不知道该怎么做,则应该阅读一些简单的示例
http://www.w3schools.com/js/js_examples.asp [
Without knowing your element IDs we can''t just write javascript for you.
If you have no idea how to do it, you should really have a read of some simple examples
http://www.w3schools.com/js/js_examples.asp[^]
这篇关于用于从datagrid中选择值的Java脚本函数,并且该值显示在文本框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!