基本页面html选择按钮,选择不同的单选按钮进入不同的html页面

我有2套单选按钮,这是我要做到以下几点:。选择不同的单选按钮进入不同的html页面

1)当所有的选择都是假的,显示的验证消息(这是工作,但点击时'重复保存'它会添加一个空行,我该如何防止这一点?)。

2)如果只选择设置1或设置2,则显示保存时的错误消息。 3)。当选择Set 1时,Set 2选择需要根据是或否将用户带到不同的页面。

在此先感谢!

Please make a selection

Radio Set 3

Yes  

No

Please make a selectionRadio Set 2

Yes  

No

Save

JS

$('#Qbtn').click(function() {

if ((!$('#attachYes').attr('checked') === true) && (!$('#attachNo').attr('checked') === true) && (!$('#NotifYes').attr('checked') === true) && (!$('#NotifNo').attr('checked')) === true) {

//the validations are displaying correctly

$('#val1').show().append('
');

$('#val2').show().append('
');

} else {

if (($('#attachYes').attr('checked') === true) || ($('#attachNo').attr('checked') === true) && (!$('#NotifNo').attr('checked') === true) && ($('#NotifYes').attr('checked')) === true) {

//the user should be taken to page1.html when clicking save and it isn't doing it

window.location = "page1.html";

//then how do I write if either of radio set 1 is true and #NotifNo of Radio set 2 is true go to page2.html.

}

}

});

2013-07-08

squirc77

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值