且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

getElementByID /参数问题

更新时间: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 Numbers

登录 关闭
扫码关注1秒登录
getElementByID /参数问题
发送“验证码”获取 | 15天全站免登陆
上一篇 : :Google Guice是否有效?下一篇 : 如何在 Ruby 中将字符串从 windows-1252 转换为 utf-8?

相关阅读

推荐文章