DennyDotNet

Awesome ASP.NET C# and other cool coding stuff

About the author

Denny Ferrassoli
Developer at Casting Networks. MCP / .NET
E-mail me Send mail
Add to Technorati Favorites

Recent posts

Recent comments

Authors

Categories

None


Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

jQuery returns only 1 element even though there are many

I was so frustrated by this issue today. I simply could not figure out why jQuery would return only 1 element for $("a") when I clearly had multiple anchor tags!

No matter what I did the length would always return 1.

I nearly missed the answer to the issue in a StackOverflow post. But it helped me find that jquery.validator was causing the issue. After going to the plug-in's website and downloading the latest version all was back to normal.

It's just unfortunate when you KNOW something is supposed to work right and you waste an hour trying to figure out why :(

Hopefully this post will help anyone with the same problem in the future and help them avoid any wasted time.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted by Denny on Monday, September 07, 2009 6:25 PM
Permalink | Comments (0) | Post RSSRSS comment feed
Comments are closed