Onclick单选按钮事件 [英] Onclick radio button Event

查看:193
本文介绍了Onclick单选按钮事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我有4个单选按钮,分别是货盘编号,货箱编号,捆包编号,si编号,id,我选择了货盘单选按钮,它必须显示数据库中的所有货盘编号,只是我需要如何导航特定页面,如果我单击了单选按钮.

sir i''m having 4 radio buttons called pallet number,box number, bundle number, si number, id i select pallet radio button it has to display all pallet numbers in database just i need how to navigate the particular page if i clicked radio button.

推荐答案

如果我正确理解您的设置,如下所示:
4个单选按钮,单击它们之一后,需要立即加载另一个页面.
您可以根据需要使用JavaScript或jQuery简单地完成此客户端.
给您的单选按钮一个ID,并为"changed"状态添加一个事件处理程序,如下所示:
http://stackoverflow.com/a/8997289 [
If I understand correctly your setup is as follows:
4 radio buttons, as soon as you click one of them a different page needs to load.
You can simple do this client side, with JavaScript or jQuery, depending on your requirements.
Give your radio button an Id, and add an event handler for the ''changed'' state, like this:
http://stackoverflow.com/a/8997289[^]
You can then modify the JavaScript Window.Location property to let the user issue another page.
Optionally you can also supply parameters to the page (QueryStrings / URL rerouting) depending on your requirements.


这篇关于Onclick单选按钮事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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