Simple JavaScript Checkbox Validation

前端 未结 11 1998
长情又很酷
长情又很酷 2020-12-10 03:56

I usually work with PHP so sadly don\'t have some basic JS principles down. This is all I want to accomplish--I\'ve seen many posts on this topic but they are usually beyon

11条回答
  •  不思量自难忘°
    2020-12-10 04:26

    You can do something like this:

    This...

    http://lab.artlung.com/validate-checkbox/

    Although less legible imho, this can be done without a separate function definition like this:

    This...

提交回复
热议问题