I am trying to get an array of flags that are checked and have a specific attribute (tag) that is NOT empty.
(I know that the attribute is tagnot compatible with HTML, but it works through major browsers and makes life a lot easier!)
eg.
<input type="checkbox" name="First" tag="first@whatever.com" checked="checked">
<input type="checkbox" name="Second" tag="" checked="checked">
In the above example, there should be only the first code in the array that I started with:
$('input:checkbox:checked')
But this does not explicitly guarantee that the attribute is tagnot empty.
UPDATE
Sorry about what I had not thought about before - I also need to get a list of flags whose is tagempty so that the user can be warned. The following work does not work:
$('input:checkbox:checked[title=""]')
$('input:checkbox:checked:not([title])')
Thanks for all the answers, really appreciate!
UPDATE 2
( title ) - title! tag, .