Take the 2-minute tour ×  I am trying to get an array of
checkboxes that ARE checked AND have a certain attribute (tag)
that is NOT blank.  (I know that the attribute called tag is not
HTML compliant but it does work across the major browsers and
makes life alot simpler!)   <input type="checkbox" name="First"
tag="first@whatever.com" checked="checked"> <input
type="checkbox" name="Second" tag="" checked="checked">  In the
above example, only the first one should be in the array The
code I have started with is:   But that obviously doesnt ensure
that the tag attribute is not blank  Sorry, something I didnt
think of before - I also need to get a list of the checkboxes
whose tag is blank so the user can be warned. The following dont
work:   Thanks for all the responses, much appreciated!   The
above code (using title to store the additional data) doesnt
work purely it seems because of the title atribute! When I
changed it to tag it worked perfectly.  share|improve this
question Why not use alt, which is HTML com