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
Martin Rheaume
4,831 PointsExtra Credit from Building an Interactive Website, Text Input Methods.
Improve the validation to check the length of the content of the message. Let's say you can't submit the form if the message is less than 15 characters long.
Using the text() method to alter the message body hint to help the user out.
I honestly don't even know where to start. I don't ever remember learning how to do this.
4 Answers
Craig London
4,883 PointsMartin, could you add a hyperlink? Does your problem seem to be form or JavaScript related? Might want to add some tags to get some better assistance.
samiff
31,206 PointsKinda hazy on that project since it's been awhile, but here is the API for text(). Just looks like a quick way to get/set content. You could disable the button until the minimum amount of characters was typed.
In regards to the "message body hint," I suppose you could let the user know exactly how many characters they have typed dynamically.
James Barnett
39,199 PointsI'm guessing this is an exercise in learning JQuery. But if it were me, I'd use HTML5 input patterns for that.
Martin Rheaume
4,831 PointsI see they have the same extra credit question for the whole badge. I thought it was video specific. I'll finish the rest of the videos and then come back to it. it is a JQuery exercise.