I often use $$('input[type=text]')

Keif's other solution is great too. Just depends on what you're trying to do.

On Jul 18, 2009, at 9:39 AM, keif wrote:


You mean like $$('input[type=text]')?

Or more like:

$$('input').each(function(el,i){
   if (el.get('type') == 'text') {
       // do stuff
   }
});
?

Jul 16, 2:44 pm, Gafa <[email protected]> wrote:
getting the tag is great but have an issue with the input tag, can I
get the type of input tag? form the tag property?

thanks

Reply via email to