Here’s the link to my code: http://jsbin.com/edago3/edit
I would love to find out what improvements could be made to make it smaller and more efficient.
Any help is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a number of improvements you can make if you’re looking for more concise code, you can see a full updated sample here. I’ll list the main areas you can save code on below (for equivalent functionality of course).
The main bits:
Can be shortened to…
This…
Can be shortened to…
This…
Can be shortened to….
It’s probably better to ask which parts you have questions on, the relevant documentation for the methods I used can be found here:
.toggle(),.toggleClass(),jQuery(html, props).