我正在尝试设置一个仅在选中复选框时才可单击的按钮/链接。所以到目前为止我的代码是
<form>
<input type="checkbox" name="agreeCheckbox" value="agreeCheckbox">By clicking this you agree that you are adding a subscription/recurring product to your order<br>
</form>
<a href="exmaple.com">This link is only clickable if checkbox is checked</a>
我假设我将不得不在 javascript 中执行此操作,尽管我在 javascript 方面是初学者。谢谢