The action for Checbox contains selected unselected and judgment code

  • 2020-03-26 23:50:28
  • OfStack

The checkbox.

$(" # chk1 "). Attr (" checked ", "); / / no box

$(" # chk2). Attr (" checked ", true); / / box

If ($(" # chk1 "). The attr (" checked ") = = undefined) / / determine whether have tick

Related articles: