Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Dan Sinclair
Dan Sinclair
1,420 Points

Using Jquery to play sound on hover

I want to set up my document in order to play a sound on a hover state.

I have looked a lot online at various resources but can't seem to find a post that shows how to set up html, css, and jquery documents in order to make something simple work.

Can anyone help?

1 Answer

Dan Garrison
Dan Garrison
22,457 Points

I've never tried it myself, but it looks like you could probably use the following to accomplish what you are trying to do.

I couldn't find jQuery method that would allow you to play audio, but you can combine jquery and JavaScript methods since they are both JavaScript. So this should work.