Skip to main content
Added missing dollar sign
Source Link
Michael Yousrie
  • 1.1k
  • 2
  • 10
  • 20

Use this:

if ($('input[name="salary_in.Basic"]:checked').length > 0)

The length is greater than zero if the checkbox is checked.

Use this:

if (('input[name="salary_in.Basic"]:checked').length > 0)

The length is greater than zero if the checkbox is checked.

Use this:

if ($('input[name="salary_in.Basic"]:checked').length > 0)

The length is greater than zero if the checkbox is checked.

Improved punctuation. Improved content. Improved grammar. Improved formatting.
Source Link
Pang
  • 9.9k
  • 146
  • 85
  • 124

This is worked for me... if (('input[name="salary_in.Basic"]Use this:checked').length > 0)

if (('input[name="salary_in.Basic"]:checked').length > 0)

ThisThe length is greater than zero if the checkbox is checked.

This is worked for me... if (('input[name="salary_in.Basic"]:checked').length > 0)

This length is greater than zero if checked

Use this:

if (('input[name="salary_in.Basic"]:checked').length > 0)

The length is greater than zero if the checkbox is checked.

Source Link

This is worked for me... if (('input[name="salary_in.Basic"]:checked').length > 0)

This length is greater than zero if checked

Post Made Community Wiki by Hamid N K