I try to select all the switches with the name, but I can only select the checked ones. For example, this works:
$("input[@name='id']:checked").each(function() {
It selects all inputs with a name identifier that are checked (in this case, one switch). But I need all of them, because I need not verified for this name, for this function.
This, for example, does nothing:
$("input[@name='id']").each(function() {
What should I do?
Thanks!
source share