更新时间:2023-11-27 13:58:46
展开 | 选择 | Wrap | 行号
展开 | 选择 | Wrap | 行号 te>
多亏了这一点,它改变了颜色,但它仍然没有传递值,即已经选择的单元格。我检查了stdout文件,但没有。其他任何东西都会很棒,或者它应该可以解释代码也很有用。
谢谢
使用保存在变量 selected中的值
Hi All,
I have searched the forums to see if I can find an answer to my question but to no avail.
I have a form below with a 3 x 3 cell. Each of these cells change from green to yellow if selected and back to green if unselected. What I would like to do is when I press the continue button the cells I have clicked will have "selected" concatenated onto the ID name so that I can see which cells the user has selected.
I have set up an action class in java to show the parameter names in the tomcat log file "stdout" but it is not passing any parameters.
I realise that the problem is with the javascript and not sure how to dynamically use the elementbyid code so that it applies to any of the cells.
I hope I have made myself clear on the problem and you will be able to help.
Thanks
Anonymousstar
JAVASCRIPT
<script language="javascript">Expand|Select|Wrap|Line NumbersExpand|Select|Wrap|Line Numbers
Expand|Select|Wrap|Line Numbers
Thanks for that, it changes colour which is great but it still is not passing the values i.e the cells that have been selected. I checked the "stdout" file but nothing. Anything else would be great or if it should work an explanation of the code would be useful as well.
Thanksuse the value saved in the variable selected
登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆