weixin_33704234 2015-06-03 16:15 采纳率: 0%
浏览 31

Ajax复选框上的辅助功能

I have a bootstrap switch checkbox which triggers an Ajax call. However, its functionality is pretty important and I need to ensure that it will work in any browser. I have a url that handle the request. What I need to know is how can I make the checkbox a "link" to this url if javascript is not enabled.

Note: I don't have a submit button.

  • 写回答

1条回答 默认 最新

  • 笑故挽风 2015-06-03 17:27
    关注

    Have the link in place on page render and remove it with javascript/replace it with the checkbox. This ensures that it's available to those without javascript.

    评论

报告相同问题?