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

JavaScript jQuery Basics (2014) Creating a Password Confirmation Form Perfect

Kevin Murphy
Kevin Murphy
24,380 Points

Perfect stage of jQuery Passwords Project

I have a question pertaining to the Perfect stage of the Passwords jQuery project. I'm wondering how the change of cursor denoting a link can be kept from happening when the submit button is disabled.

Originally thought that could be managed in CSS but not so sure now, don't think it's possible through CSS. Seems like jQuery would be needed. Is that correct? Any thoughts on how this would accomplished?

1 Answer

Andrew McCormick
Andrew McCormick
17,730 Points

Something like

input[type="submit"]:disabled { cursor: wait; };

other cursor options

Kevin Murphy
Kevin Murphy
24,380 Points

Ahh so it is CSS! I need to reinforce my understanding of attribute selectors. I do understand the snippet. Didn't realize or forgot there was a pseudo class of disabled, and property of cursor. Will look into those as well. Thanks Andrew.