I have written a small script. Here is the demo : http://jsfiddle.net/kolxoznik1/MfLuU/3/
Everything works good, but I need to optimize it because in my opinion code isn’t written as it should be. Like to hear what can be improved.
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.
Your HTML is invalid – that’s why jsfiddle highlighted your last
divtag. Make sure you close yourimgtag and the closing anchor tag had the slash in the wrong place.You can use chaining on your jQuery calls. You should probably also use
findso you only get the.bthat is underneath the current.a