3 | | I'm afraid you are, because `[…]` [http://api.jquery.com/category/selectors/attribute-selectors/ selectors] target attributes, not properties. And only properties recognized as [http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#boolean-attributes boolean] by the client lack a proper string value. You can, however, adopt a convention for indicating truth/falsehood and check for your expected value with `[attr="<true value>"]` or `[attr!="<false value>"]`, respectively. |
| 3 | I'm afraid you are, because `[…]` [http://api.jquery.com/category/selectors/attribute-selectors/ selectors] target attributes, not properties. And only attributes recognized as [http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#boolean-attributes boolean] by the client lack a proper string value. You can, however, adopt a convention for indicating truth/falsehood and check for your expected value with `[attr="<true value>"]` or `[attr!="<false value>"]`, respectively. |