On Aug 8, 11:34 am, V <vincenti...@gmail.com> wrote: > Wow, that is strange it indeed works :o > > The error is; > Object doesn't support this property or method > > But i figured what the problem is because I changed the code; > <div id="contactform"> > <div> > <input type="text" name="name" value="" /> > </div> > </div> > > name = $("#contactform input[name=name]").val(); > > But, it goes wrong on #contactform, I thought this should work? > > This does work but i do not prefer this > name = $("#contactform div input[name=name]").val(); the correct syntax i think should be var name = $("#contactform > div > input[name='name']").val();
- [jQuery] Attribute selection not working in MSIE; eg $("i... V
- [jQuery] Re: Attribute selection not working in MSIE; eg ... Cesar Sanz
- [jQuery] Re: Attribute selection not working in MSIE;... MorningZ
- [jQuery] Re: Attribute selection not working in M... V
- [jQuery] Re: Attribute selection not working ... Cesar Sanz
- [jQuery] Re: Attribute selection not wor... James
- [jQuery] Re: Attribute selection not... V
- [jQuery] Re: Attribute selection... HerrJuergen
- [jQuery] Re: Attribute selection... V
- [jQuery] Re: Attribute selection... V
- [jQuery] Re: Attribute selection... HerrJuergen
- [jQuery] Re: Attribute selection not working in MSIE; eg ... Ricardo