Hi Marcus,
I think the reason for :text is to distinguish it from other inputs.
It's basically a shortcut for input[type=text]. There is no need to
have a filter for text areas because you can simply use the tag name
without ambiguity: $('textarea'). Of course, if you want to select all
text inputs and text areas, you can do $('textarea, :text')
Hope that helps clear things up a bit.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 30, 2009, at 3:13 PM, smurkas wrote:
>
> Hello. I was doing some form validation today and I noticed that
> there's no filter for text areas. The :input filter includes it
> but :text excludes it and it doesn't have a filter of it's own.
> Personally I think that :text should include text areas and barring
> that, there should be a filter for text areas just like for all the
> other big form input categories.
>
> Kindly, Marcus.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---