I have this jQuery which gives me a set of INPUT items.
var list = $("input[name*='popSearch']")
How would I modify it to only return those where the INPUT element is checked ?
I have this jQuery which gives me a set of INPUT items.
var list = $("input[name*='popSearch']")
How would I modify it to only return those where the INPUT element is checked ?
var list = $("input[name*='popSearch']:checked");
See the documentation on selectors.
Hi,
first docs.jquery.com is a fanstastic resource,
however to your request this should work,
var list = $("input[name*='popSearch'] :checked")
I think this should do it:
var list = $("input[name*='popSearch']:checked")