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

Help 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

Does "submit" need to be "#submit" ?

Hey David.. Thanks!! I feel very silly. It is obvious that mistake was a beginner mistake. Need to pay more attention. :S

Don't worry I'm sure we have all made this mistake at some point. lol it still even catches me out sometimes

lol. Yeah.. I do remember when I use to spend one our in Photoshop and not saving the file :). well. Thanks again David

1 Answer

Sorry 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.

Hey ! Thanks a lot David. I appreciate your help. :)