按钮从一个位置切换到另一个位置 [英] button switching position from one to other

查看:89
本文介绍了按钮从一个位置切换到另一个位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对用户有五个对错题,所以我创建了5对不同的单选按钮列表和一个提交按钮,每对都有两个按钮,一个是对,另一个是对.选择所有是"并提交,然后我想看到一条消息您已成功完成",它工作正常.但是,对于每个用户都选择否"并提交的每个问题,我想显示一条消息您的资格不合格",但是它的作用是在提交所有否"时切换为是",而不是被选中为否". div class ="h2_lin">解决方案

我们不读书.显示一些代码.具体来说,显示检查单击单选按钮的值的提交单击处理程序和代码.如果是asp.net,那么一路走来,您可能只需要打开页面的视图状态,以便它在回发后能够记住设置.


I have five true or false questions for users.So I created a 5 different pair of radio button lists and a submit button to submit.Each pair has two buttons one is for yes other is for no .for each question when user select all "yes" and submit then I want to see a message "you have completed succesfully" which is working fine. But for each question when user select all No and submit I want to show a message" u r not qualified",but what it does is when submitting all the "No" it is switching to "Yes" rather than being slected as no.

解决方案

We don''t read minds. Show some code. Specifically, show the submit click handler and the code where you check the values of the radio buttons. Going out on a limb, if this is asp.net, you may only need to turn on your viewstate for the page so that it remembers the settings after postback.


这篇关于按钮从一个位置切换到另一个位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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