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 trialZach Allan
19,452 PointsHow do I change the text of the 'Edit' button when I click on it?
I would like it to say "Done" when I go into edit mode and say "Edit" when it's not in edit mode.
Here is a snapshot of all of my code: https://w.trhou.se/8w7i1rnbmc
Marcel Schmidt
12,134 PointsMarcel Schmidt
12,134 PointsHi there Zack,
I was just wrappin my head around this too and found a solution. I don't know if this is the intended/proper way to do it, but this is how I got it to work. I marked the code with comment arrows:
Hope this helps, if you don't understand wh/how this is working, feel free to ask.