使用Onchange或Onclick [英] Using Onchange or Onclick

查看:115
本文介绍了使用Onchange或Onclick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含组合框和表格的表单.i需要每当用户从组合框中选择一个选项时,页面就会重新加载,但是表格数据与他从框中选择的客户端相关。我真的需要帮助,我很困惑是否使用< select onchange =>或者<选项onclick>

以及如何告诉他重新加载同一页

解决方案

- 移至Javascript。

通常使用select-node的onchange-event。对于提交,您可以调用使用 submit()<的函数/ a> -method


这是你可以做的:

展开 | 选择 | 换行 | 行号


I have a form which contains a combo box and a table ..i need that whenever the user selects an option from the combo box the page is reloaded but with the table data related to that client he choosed from the box .. i really need help with this and im very confused whether to use <select onchange= > or <option onclick>
and also how to tell him to reload same page

--Moved to Javascript.


typically you use the onchange-event of the select-node. and for a submit you may call a function that uses the submit()-method


Here''s what you can do:

Expand|Select|Wrap|Line Numbers


这篇关于使用Onchange或Onclick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆