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
Carlos Diaz
Courses Plus Student 9,006 PointsHelp with remove or disabled attr
Hi I have a little Jquery situation here and I was wondering maybe someone can help me out.: Please check: On Build an Interactive Website Form Validation and Manipulation Modifying Attributes I have the following task:
"In jQuery remove the 'disabled' attribute from the input with the id of 'submit'"
the following is my answer after many other try's and still no giving the right answer. $("#email").addClass("valid"); $("#name").removeClass("error"); $("#accept").attr("checked", "checked"); $("submit").removeAttr("disabled", "true"); <-------This is the one that i can't answer
Thanks and look forward to your any reply
Carlos Diaz
Courses Plus Student 9,006 PointsHey David.. Thanks!! I feel very silly. It is obvious that mistake was a beginner mistake. Need to pay more attention. :S
David Smith
21,220 PointsDon't worry I'm sure we have all made this mistake at some point. lol it still even catches me out sometimes
Carlos Diaz
Courses Plus Student 9,006 Pointslol. Yeah.. I do remember when I use to spend one our in Photoshop and not saving the file :). well. Thanks again David
1 Answer
David Lane
33,414 PointsSorry for the double answer, but I checked out the question you referred to and it looks like you just need a "#" sign in front of your "submit" id.
Carlos Diaz
Courses Plus Student 9,006 PointsHey ! Thanks a lot David. I appreciate your help. :)
David Lane
33,414 PointsDavid Lane
33,414 PointsDoes "submit" need to be "#submit" ?