Skip to main content
  1. Home
  2. Audio / Video

Audio / Video

An iPhone with the Home section of the Spotify app on it.

The best music streaming services of 2024

Finding it hard to decide which music streaming service is best? From music discovery to quality, we've selected the most popular services available today.
You Asked Ep 33

You Asked: Sony surround, FlexConnect vs. Sony HT-A9, LG G4 vs. Samsung S95D

This week on You Asked: Should you use Samsung's Intelligence Mode? The differences between Dolby FlexConnect and Sony HT-A9. A preview of a big OLED showdown.
Event listing for Chappel Roan on Spotify, seen on an iPhone.

How to cancel Spotify Premium on any device

Is it time to part ways with your Spotify Premium account? Here’s how to cancel your Spotify subscription on your desktop PC and mobile devices.
The ESPN+ logo on a black background.

ESPN+ Free Trial: Can you sign up for free in 2024?

Thinking of signing up for ESPN+ and looking for a way to try it for free? Here's the current scoop on an ESPN+ free trial, along with some ways you can save.
An iPhone with the Home section of the Spotify app on it.

Apple Music vs. Spotify: Which music streaming service is the best?

Apple Music or Spotify? It’s a question many have asked, and an answer we’re going to explore. Here’s our side by side comparison of both platforms.
LeBron James carrying what looks like a new Beats Pill speaker.

Hey LeBron, is that a new Beats Pill speaker by any chance?

The L.A. Lakers just posted a video of LeBron James and the basketball superstar appears to be holding an unreleased Beats Pill speaker.
An iPhone 15 Pro showing Qobuz app.

What is Qobuz? Music, features, and pricing explained

Calling all audiophiles! There's a streaming platform called Qobuz that prioritizes hi-res audio playback. Here's everything you should know about the service.
Tidal app for iOS on an iPhone 14 showing now playing screen with Max quality track.

Tidal vs. Spotify: Which music streaming service has the features you need?

Spotify may be king of the streaming music world, but when it comes to audio quality, Tidal offers some big competition. Join us as we compare both platforms.
Chromecast with Google TV.

A $20 Chromecast with Google TV is perfect for this one reason

If you travel at all, you should consider a $20 Chromecast with Google TV. It's just tough to pass up at that price.
Wiim Ultra.

Wiim Ultra, a music streamer with a color touchscreen, teased ahead of May launch

LinkPlay is giving fans a sneak peek at the new Wiim Ultra, a network media streamer with a 3.5-inch touchscreen that it will officially launch May 9.
Deezer app on an iPhone 15 Pro.

What is Deezer? Features, pricing, and music quality explained

Deezer may not get the kind of attention that Spotify and Apple Music attract, but it's still a phenomenal music-streaming platform with hi-res audio playback.
The Sony Bravia XR X93L 4K Google TV hanging over a media center in a living room.

Best Sony TV deals: Save on best-in-class 4K TVs and 8K TVs

For gorgeous, high-quality TVs, one of the best brands to shop for is Sony, and right now you can save big with these Sony TV deals.
The Klipsch Reference Series 12 on a shelf.

Best subwoofer deals: Up the bass for as low as $90

A home audio setup isn't complete without some bass, and you can save big on a new subwoofer with these subwoofer deals we've rounded up.
Taylor Swift on SiriusXM in a Hyundai Palisade.

SiriusXM’s Taylor Swift channel is free if your car has satellite radio

All cars equipped with SiriusXM hardware can listen to Channel 13 (Taylor's Version) for free through the first week of May. You're welcome, world.
vizio 55 inch oled 4k tv deal black friday 2020

Best Vizio TV deals: Cheap smart TVs starting at $90

Vizio is a great TV brand if you're looking for both affordability and capability, and its TV lineup is even more affordable with these Vizio TV deals.
Netflix on a TV screen showing on the Roku home screen.

Netflix to hide its subscriber numbers starting in 2025

Netflix says that it no longer will give regular updates about how many paid subscriber it has, because it's about quality, not quantity.
An Apple TV 4K sitting on a wood entertainment center with a HomePod Mini behind it.

What we want to see from the next Apple TV 4K

Apple TV 4K is the best streaming device you can buy — but that doesn't mean it can't be better. This is what we'd like to see added to the next version.
tablo ota dvr 4th generation review tv 2023 2

Tablo’s four-tuner/antenna bundle is just about perfect

If you need a simple and relatively inexpensive way to get your over-the-air broadcast channels, this bundle from Tablo is tough to beat.
Nothing's ChatGPT integration in Nothing OS.

Nothing’s new earbuds upstage Apple, Google, and Amazon by embedding ChatGPT

By adding instant voice access to ChatGPT, Nothing's earbuds leapfrog Apple, Google, and Amazon in the AI race.
Anker Soundcore Sleep A20 earbuds worn while sleeping on side
Sponsored

Anker’s Soundcore Sleep A20 earbuds are next-level sleep aids to block out noise

The Anker Soundcore Sleep A20 buds are designed to help you sleep better and wake up more fulfilled in the morning by blocking out ambient noise.
People watching sports on the 50-inch Vizio V-Series 4K TV.

Walmart is having a clearance sale on Vizio TVs — From $148

Snap up a Vizio TV for a bargain price as part of the Walmart sale going on right now. There are plenty of different sizes and models out there.
The Moto Buds in Forest Gray.

New $129 Moto Buds+ tap Bose for boom and Dolby for head tracking

The Moto Buds+ look to be perfect when paired with Motorola's Edge 50 series of phones, with Bose and Dolby Atmos raising the stakes.
lg 55 inch oled 4k tvs deal walmart class b8 tv

Best Walmart TV deals: 43-inch 4K TV for $195 and more

From Vizio to Onn, Walmart has some great discounts on a range of screens up to 75-inches, so grab them while the deals last.
The Samsung Q-Series 11.1.4-channel surround sound system set up in a luxurious living room.

Best soundbar deals: Save on Bose, Samsung, Vizio, and more

Today you can upgrade your home theater audio with some savings, as we've rounded up the best soundbar deals you can shop right now.
Beats Studio Pro sitting on travel case.

Best headphone deals: AirPods, Sony, Sennheiser and more

We've gathered the best headphone deals online involving popular brands such as Bose, Sony, Sennheiser, and Beats. Grab them while they're still discounted.
The Epson EpiqVision Mini EF12.

Best projector deals: Replace your TV with a big screen from $58

Elevate your home theater setup by buying from these projector deals, which include affordable options and premium models from brands like Epson and Samsung.
The Hisense U6H ULED 4K TV in a living room.

Best QLED TV deals: Samsung, TCL, LG and Vizio

With a QLED TV you're getting some of the best image quality a TV has to offer, and with these QLED TV deals you can save while adding one to your home theater.
TCL Alto wireless soundbar and subwoofer deal walmart

Soundbar sale: Save on Samsung, Sony, Bose, and more, from $42

Best Buy has a huge sale on soundbars with many models available at a great discount. We've picked out some highlights here.
Two Amazon Fire TV Stick 4K Max sticks in hand.

All of Amazon’s Fire TV streaming devices are heavily discounted today

Amazon's Fire TV streaming devices sale is loaded with discounts on the Amazon Fire TV Stick Lite, Amazon Fire TV Cube, and more, but probably not for long.
Sony Bravia Theater Bar 9.

Sony’s best soundbars are reborn as the Bravia Theater Bar 8, Bar 9, and Quad

Sony has reimagined and renamed its 2024 lineup of soundbars under the new Bravia Theater brand, with the Bar 8, Bar 9, and Quad sound systems.
2024 Sony Bravia 9 4K mini-LED TV.

Sony debuts the Bravia 9, its brightest 4K TV ever, alongside new 2024 models

Sony's 2024 TVs are getting brighter and easier to remember as new models are now united under the Sony Bravia brand.
Sony - 65 Class X80J Series LED 4K UHD Smart Google TV

Best Buy just knocked $300 off this 85-inch Sony 4K TV

Looking for a great TV to fill out your living room? Best Buy has the Sony 85-inch X80K 4K TV down to $1,300 for a limited time.
best youtube tv alternatives alternative 5

The 5 best YouTube TV alternatives in 2024

YouTube TV is a great streaming service. But it's not the only one. Here are the best YouTube TV alternatives you should check out.
YouTube TV and Hulu apps on the Roku homescreen.

Yes, YouTube TV is kind of broken tonight

YouTube TV — the biggest live streaming service in the U.S. — is glitching all over the place this evening. Adjust your life accordingly.
Section Editor, Audio/Video
Spotify Music
Spotify
The best for most people
Jump to details
Apple Music
Apple Music
Perfect for Apple users who want hi-res audio
Jump to details
Tidal
Tidal
Audiophile quality with wide device support
Jump to details
Qobuz
Qobuz
Audiophile quality for a little less
Jump to details
Amazon Music
Amazon Music
Excellent value, hi-res audio, great for Prime customers
Jump to details
Deezer
Deezer
Somewhere in the Goldilocks zone
Jump to details
YouTube Music
YouTube Music
The best of music and YouTube is all here
Jump to details

Music streaming platforms like Spotify, Apple Music, Tidal, YouTube Music, Amazon Music, Qobuz, and Deezer have entirely changed how we explore, enjoy, and exchange music. They bring convenience and accessibility to all new levels.

Yet, with so many choices, selecting the right music streaming app might feel like a daunting task. Each platform offers a music collection featuring artists, albums, playlists, and podcasts. Additionally, they each have their interface designs and special features, like song lyrics display, offline downloads, AI-generated playlists, high-quality audio formats, and more.

We’ve compiled a list of the best music streaming services to assist you. We've tested them all, and our evaluation criteria include pricing plans, user interface experience, quality of tracks offered, and much more. Let’s get started!

An iPhone with the Search section of the Spotify app on it.
Derek Malcolm / Digital Trends

Spotify

The best for most people

Pros
  • Excellent UI
  • Best-in-class discovery
  • More than 100 million songs
  • The biggest podcast network
  • Fun special features
Cons
  • No hi-res option ... yet
  • Glitchy performance at times
Specs
Plans (monthly): Free / Individual: $11 / Duo: $15 / Student: $6 / Family: $17
Library Size: More than 100 million tracks
Quality: 160kbps to 320kbps

When it comes to music streaming, Spotify is definitely one of the most recognizable brands on the planet. Launched in 2006, the platform is available across the globe, and is home to more than 100 million songs and growing. Spotify is also the world's biggest podcast platform. Whether you’re rocking an iPhone, a Google Pixel, a laptop, or you're in your car, there’s a good chance that Spotify is going to be compatible with your hardware.

Beyond the music archive, Spotify offers several different subscription options, including individual, family, and student plans, as well as a free version with ads. Spotify Premium users also receive unlimited track skips, 320kbps audio quality, and offline downloads for up to 10,000 songs across five devices. The company is also really good at keeping its user interface familiar and reliable from one hardware type to another.

Spotify is also great for sharing. Thanks to integrations with social platforms like Facebook and Instagram, your circle of pals will get to see what you’ve been jamming out to lately. You’ll even have the option of sharing songs with others and even creating collaborative playlists you can all add to. Additionally, no one is quite as good as Spotify at always adding and experimenting with new and fun features, like its AI-driven DJ and, most recently, its beta AI Playlist that lets you type Chat GPT-style text prompts to get it to curate playlists for you.

So, where does the service struggle? Track quality, for one. Unlike platforms like Tidal and Qobuz that place a big emphasis on hi-res audio, Spotify’s tracks are capped at 320kbps, which only the most critical of audiophiles will notice. Spotify's long-awaited Hi-Fi tier may still see the light of day, though, so if it's not a deal breaker, you could just wait it out. But if you just want a music streamer that offers tons of genres, playlists, and fun social features, Spotify is going to be your best bet.

Spotify Music
Spotify
The best for most people
Music playing through Apple Music on the Asus ROG Phone 7 Ultimate.
Andy Boxall / Digital Trends

Apple Music

Perfect for Apple users who want hi-res audio

Pros
  • More than 100 million songs
  • Excellent hi-res options and Dolby Atmos
  • Great interface
  • Competitive pricing
Cons
  • No free tier
  • Can’t keep downloaded songs if you cancel
  • No plan for couples
Specs
Plans (monthly): Individual: $11 / Student: $6 / Family: $17
Library Size: More than 100 million tracks
Quality: 256kbps AAC, 16-bit/44.1kHz, 24-bit/48kHz, 24-bit/192kHz

Some folks will remember Apple’s original foray into digitized music from a little platform called iTunes that launched back in 2000. Paving the way for Apple’s streamlined interface and big music library, iTunes eventually evolved into Apple Music in 2015. A fierce competitor to rivals like Spotify and Tidal, Apple Music is simple to use, boasts a library of more than 100 million tracks, is available across multiple platforms, and even offers hi-res listening options.

Apple Music also lets you test the waters before enrolling in one of its many subscription options. With a one-month free trial, you’ll have plenty of time to get a good lay of the land, at which point you’ll need to shell out for a monthly subscription, which runs $6 for students, $11 for an Individual plan, and $17 for the Family plan.

Every tier gives you access to full playback controls, recommended music based on your listening habits, and some nice visual treats for your phone, tablet, and computer screens. We’re talking immersive album artwork, line-by-line lyrics, and intuitive search tools that make finding songs and artists a breeze.

As far as track quality is concerned, Apple’s audio far exceeds Spotify’s 320kbps cap, with lossless ALAC tracks that can get as high as 24-bit/192kHz. Apple Music also uses the smaller AAC format with resolution up to 256kbps and offers many tracks and albums in Dolby Atmos, which Apple brands as Spatial Audio. And while you’ll be able to share tracks with friends and family, Apple Music doesn’t offer the same social integrations as Spotify.

If you’re familiar with the design and UI of devices like the iPhone, iPad, MacBook, and Apple TV, you’re going to feel right at home using Apple Music. Both desktop and mobile interfaces are clean, simple, and easy to navigate, with just about everything you could need right at your fingertips. Plus, there are all kinds of smart speakers (such as Sonos and Apple's HomePod) and smart displays that offer native Apple Music support.

Apple Music
Apple Music
Perfect for Apple users who want hi-res audio
An iPhone with the Rolling Stones playing on the Tidal app.
Derek Malcolm / Digital Trends

Tidal

Audiophile quality with wide device support

Pros
  • More than 110 million tracks
  • Some of the best hi-res tracks in the game
  • Includes offline listening
  • Works with many different types of devices
  • Awesome playlist curations
Cons
  • Weak podcast library
  • Music discovery tools are not as good as others
  • UI could be improved and more streamlined
Specs
Plans (monthly): Indvidual: $11 / Family: $17 / Student: $6 / DJ Extension add-on: $9
Library Size: More than 110 million tracks
Quality: 320kbps, 16-bit/44.1kHz, 24-bit/192kHz

Regarding top-notch music streaming quality, Tidal is one of the best names in the business, bar none.

Renowned for its focus on excellent sound quality, Tidal gives you access to an immense library of songs in 16-bit/44.1kHz up to 24-bit/192kHz in various formats, including HiRes FLAC, Dolby Atmos, Sony 360 Reality Audio, FLAC, and Master Quality Authenticated (MQA). Not all of Tidal's artists and albums are in hi-res, but there's a good chance that several artists you enjoy have at least some hi-res offerings in the archive.

Diehard fans will also enjoy Tidal's dedication to additional content, including videos and real-time streams, creating a more immersive musical experience. We're also big fans of its artist-generated playlists.

In terms of cross-platform compatibility, Tidal is also available on a range of popular devices, from iOS and Android hardware to smart speakers, smart displays, streaming devices, and even native AV support from audio brands like Sonos and Harman Kardon through Tidal Connect. But what sets Tidal apart is its user-friendly interface. From apps to desktop versions, Tidal’s UI is designed to be clean, ultra-navigable, and tethered to your preferences, ensuring a comfortable and personalized experience.

Beginning in April 2024, Tidal removed its expensive HiFi plans, while still keeping its high-quality library. The best part? Its new plans are cheaper and more in line with what Apple Music, Spotify, and others are charging. This means you can enjoy premium music streaming without breaking the bank. You can try Tidal for free for the first 30 days of a new membership. The platform also offers discounts to students, military, and first responders, making it even more affordable.

If you’re looking for supreme audio quality and talented curation, you should give Tidal a try. Plus, you’ll be hard-pressed to find many of these high-resolution tracks elsewhere.

Tidal
Tidal
Audiophile quality with wide device support
A person using the Qobuz app on an iPhone.
Qobuz app's home screen Andy Boxall / Digital Trends

Qobuz

Audiophile quality for a little less

Pros
  • Big hi-res music library
  • Inspired editorial content
  • Can purchase songs and albums without a subscription
  • Free trial for Studio plan
Cons
  • Lacks social listening features
  • No podcasts
Specs
Plans (monthly): Studio: from $11 / Sublime: from $180 per year
Library Size: More than 100 million tracks
Quality: 16-bit/44.1kHz, 24-bit/192kHz

A close competitor to Tidal, Qobuz is another music streaming platform that goes all in on the hi-res catalog. It is home to over 100 million tracks in lossless CD quality, and more than 240,000 albums in hi-res audio. Qobuz streams audio using high-quality FLAC files ranging from 16-bit/44kHz to 24-bit/192kHz, translating to some seriously good sound. Whether you're listening through a pair of speakers or a pair of headphones, Qobuz tracks are going to sound about as good as they can get.

Qobuz offers two subscription plans, namely Studio and Sublime. Each plan has three levels to choose from. The Studio plan provides offline listening and a visually appealing desktop and mobile interface enriched with additional content such as artist bios, reviews, feature op-eds, and how-to guides. The Solo Studio level costs $13 per month, Duo costs $18 per month, and the Family plan (for up to six accounts) costs $22 per month. You can get discounts on these plans by opting for a yearly payment.

The Sublime subscription offers the same benefits as the Studio plan and up to 60% off many hi-res download purchases. However, you need to purchase a yearly subscription to get these benefits. The Solo Sublime plan costs $180/year, Duo costs $270/year, and the Family plan costs $350/year. Note that the Sublime subscription can only be purchased through a yearly payment, not monthly.

Oh, and we can't forget this gem: You can pay to download Qobuz hi-res tracks and albums without a monthly subscription.

On the downside, Qobuz does not have Dolby Atmos tracks like Apple Music, Tidal, and Amazon Music, and there are no podcasts or video content.

Qobuz
Qobuz
Audiophile quality for a little less
Amazon Music on a smartphone screen.
Amazon

Amazon Music

Excellent value, hi-res audio, great for Prime customers

Pros
  • Huge music library
  • Lots of hi-res tracks and albums
  • 90-day free trial
  • Discounted plans for Amazon Prime members
  • Discount for owning an Echo device
  • Now offers a student plan
Cons
  • Complicated subscription options
  • Amazon Music only has shuffle mode
Specs
Plans (monthly): With Prime: $10 / w/o Prime: $11 / Family: $17 / Single Device Owner: $6 / Student: $6
Library Size: More than 100 million tracks
Quality: 320kbps, 16-bit/44.1kHz, 24-bit/192kHz

Amazon Music is a unique streaming option, especially for those of us who are already paying for Amazon's $139 annual Prime membership (or $15 per month). Like many platforms we've covered up to this point, Amazon Music offers both CD quality and lossless audio formats, Dolby Atmos and 360 Reality Audio tracks, a large music library, and some awesome smart home integrations (especially for Alexa-powered devices). The "unique" descriptor is mainly aimed at Amazon Music's pricing, though, which is complex, to say the least.

Are you an Amazon Prime member? Great! That means you'll be able to get the ad-free Amazon Music Unlimited (AMU) for $10 per month, as opposed to the non-Prime member subscription tier, which costs $11 per month. If you're interested in nabbing Amazon Music Unlimited and just so happen to own an Echo speaker, you can sign up for the Single Device Owner plan. It only costs $6 per month, but you'll only be able to use AMU on that one device. Oh, and there's also an AMU Family Plan for $17 per month ($169 per year) that covers up to six users.

The pricing isn't impossible to understand, but figuring out which option makes the most sense for you and yours can be confusing. Plus, Amazon technically has two different music streaming options: Amazon Music Unlimited and Amazon Music Prime. The latter is built into your Amazon Prime membership and gives you access to Amazon's entire music library, but playback is limited to shuffle mode, and you won't be able to listen to any hi-res tracks either.

Whether you're listening with Amazon Music Unlimited or Amazon Music Prime, Amazon Music looks great on mobile and desktop platforms. Unlimited subscribers also benefit from video content, offline downloads, and a fun scrolling lyrics feature.

Amazon Music
Amazon Music
Excellent value, hi-res audio, great for Prime customers
The Deezer app being used on an iPhone.
Deezer

Deezer

Somewhere in the Goldilocks zone

Pros
  • Robust music library
  • Offline downloads
  • Includes video content and podcasts
  • CD-level quality
  • Can upload your own MP3s on desktop
  • Duo plan is now available
Cons
  • No hi-res
  • Can’t upload MP3s using mobile devices
Specs
Plans (monthly): Free / Premium: $12 / Family: $20 / Duo: $16 / Student: $6
Library Size: More than 120 million tracks
Quality: 128kbps, 320kbps, 16-bit/44.1kHz

Deezer lives in the Goldilocks zone of music streaming options. It offers a bigger library than competitors like Spotify and Apple Music and has CD-quality music, but it doesn’t touch the top-shelf hi-res content you’ll find on platforms like Tidal and Qobuz. Price-wise, though, it’s weirdly more expensive than everyone except Tidal, but Tidal gives you hi-res. Its individual plan is $12 per month, and for that, you get access to unlimited listening, lyrics, video content, offline listening, and a few other features.

Deezer is also one of the only streaming platforms that lets you upload your own tracks. While the quality is limited to MP3, and you won’t be able to do any uploading with a mobile device, it’s nice to have the ability to spread your own library across multiple gadgets.

Deezer used to have a HiFi plan that was $15 per month, but now its 16-bit/44.1kHz FLAC tracks are built into its Premium and Family plans. As mentioned, this is lower quality than top-tier plans from the likes of Tidal and Qobuz, but it still packs quite a punch. Deezer free tier customers can only access MP3 files up to 128kbps, though. On a positive note, like Spotify, there's now a duo package available through Deezer for $16/month.

As for Deezer’s UI across desktop and mobile platforms, both versions are geared toward easy navigation through playlists, genre labels, and similar search criteria. There are also several recommended categories and an excellent podcast library to check out.

Deezer does a nice job at checking several of the most important boxes for what makes up a solid music streaming service. Hi-res devotees may want to look elsewhere, but we definitely think Deezer is worth trying out, so make the best of that 30-day free trial!

Deezer
Deezer
Somewhere in the Goldilocks zone
An iPhone with the YouTube Music app on it.
Derek Malcolm / Digital Trends

YouTube Music

The best of music and YouTube is all here

Pros
  • Terrific music library
  • Simple pricing model
  • Intuitive user interface
  • Cool community upload features
Cons
  • No hi-res tracks
  • No editorial content
Specs
Plans (monthly): Free / Premium Individual: $11 / Family: $17 / Student: $5.50
Library Size: More than 100 million tracks
Quality: 256kbps

Last but not least, we have YouTube Music. A rebranding and consolidation of multiple Google/YouTube paid services that came before it (including Google Play and YouTube Red), YouTube Music is your one-stop-shop for everything ... music-related. Subscribers will have access to over 100 million tracks, podcasts, an intuitive lyrics tool, excellent playlists, and much more. Right off the bat, though, we'd like to let our hi-res fans know that YouTube Music caps its track quality at 256kbps.

That doesn't mean you should look away, though. In fact, we think YouTube Music has a lot going for it when it comes to overall desktop and mobile interfaces. Navigating from one panel to the next is fast and easy, with most of what you'll want to be listening to housed under the "Home" and "Library" tabs. The former is a hub for recommended content based on your listening habits, while the latter is the storage site for all your personal playlists, favorited songs and albums, and other user-specific features.

It's also a thrill to watch YouTube Music sync up to your local time of day and weather conditions. These factors affect the type of music that the platform will recommend.

Regarding pricing, there's only one paid subscription plan: YouTube Music Premium. This paid tier removes ads for desktop and mobile listening, grants you offline downloads, and gives you a sweet feature called Smart Downloads. When enabled, this lets YouTube Music automatically download your favorite songs, artists, and albums for offline listening and even adds in recommended tracks and albums.

And, of course, YouTube Music is packed with video content. When you search for a song or artist, you will get officially licensed media and see video results for YouTubers covering the song, lyric videos, and more.

YouTube Music
YouTube Music
The best of music and YouTube is all here
(function() { var moduleEl = document.querySelector('.h-accordion-unprocessed'); moduleEl.classList.remove('h-accordion-unprocessed'); var itemEls = Array.prototype.slice.call(moduleEl.querySelectorAll('.h-accordion-item')); itemEls.forEach(function(itemEl) { itemEl.querySelector('.h-accordion-title').addEventListener('click', function() { itemEls.forEach(function(el) { if (el !== itemEl) { el.classList.remove('is-active'); } }); itemEl.classList.toggle('is-active'); if (window.getSelection) { window.getSelection().removeAllRanges(); } }); }); }());