Try using the not()
method instead of the :not()
selector.
$(".content a").click(function() {
$(".content a").not(this).hide("slow");
});
More Related Contents:
- jQuery how to find an element based on a data-attribute value?
- Why is my jQuery :not() selector not working in CSS?
- Wildcards in jQuery selectors
- Set select option ‘selected’, by value
- What is fastest children() or find() in jQuery?
- Jquery bind double click and single click separately
- jQuery OR Selector?
- jQuery selector value escaping
- jQuery or CSS selector to select all IDs that start with some string [duplicate]
- jquery find versus context selection
- Controlling the value of ‘this’ in a jQuery event
- How can I detect if a selector returns null?
- What CSS3 selectors does jQuery really support, e.g. :nth-last-child()?
- jQuery: select an element’s class and id at the same time?
- Difference between :hidden and :not(:visible) in jQuery
- jQuery attribute name contains
- How can I get the corresponding table header (th) from a table cell (td)?
- jQuery scrollTop not working in Chrome but working in Firefox
- Select elements without any class [duplicate]
- jQuery attribute selector for multiple values
- jQuery: selector (classname with space)
- Find all elements based on ids using regex on jQuery selector
- JQuery data selector not updating with .data
- :nth-of-type() in jQuery / Sizzle?
- A cleaner way to select by multiple possible attribute values?
- How to select specific form element in jQuery?
- Using jQuery how do I select a range of rows?
- jQuery: using a variable as a selector [duplicate]
- How to use multiple jquery object variables as selectors?
- How do I select an element with special characters in the ID?