如何设置href到单击复选框? [英] How to set href to a checkbox on click?

查看:94
本文介绍了如何设置href到单击复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.如何设置href为点击时的复选框

1.How to set href to a checkbox on click

<a href="/Demo/sense/show/4">
  <input type="checkbox" />Yes
</a>

  <a href="/Demo/sense/list">
      <input type="checkbox" />NO
    </a>

但是当我选中一个复选框,它不会转到另一个页面。

But when i checked a checkbox.. it not going to another page..

2.如何点击文本而不是是复选框设置已选中
请帮助我..
Thanx

2.how to set checked on click on YES text rather than Yes Checkbox Please Help me.. Thanx

推荐答案

< input type =checkboxonclick ='window.location.assign (/ Demo / sense / show / 4)'/>是

这篇关于如何设置href到单击复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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