Skip to content
Advertisement

Check if each() index 1 et index 2 has .prop( ‘checked’ )

How to check in a each() function if the first and the second matched element have the prop checked ?

JavaScript

Advertisement

Answer

You don’t want to use each for this. Just check the values with simple indexing:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement