[jQuery] Re: id same as name confuses JQuery?

2008-10-14 Thread Tim Scott
First sorry for the errors in my example. Braces was a typo. Div with name attribute was an error also. My real issue is with a select tag. Anyway...while creating a sample page I have found that the problem is different than I thought. It seems the problem is that jQuery cannot find

[jQuery] Re: id same as name confuses JQuery?

2008-10-14 Thread MorningZ
It seems the problem is that jQuery cannot find elements having an ID with dots in it It can, but you need to read the documentation on how to get around jQuery thinking the dot means has CSS class of

[jQuery] Re: id same as name confuses JQuery?

2008-10-13 Thread Erik Beeson
I assume your use of braces instead of parenthesis is just a typo? I am unable to reproduce this. This works for me: $('body').append('div id=foobar name=foobar.../div'); $('#foobar').size(); // 1 Could you provide a sample page? --Erik On Mon, Oct 13, 2008 at 1:30 PM, Tim Scott [EMAIL

[jQuery] Re: id same as name confuses JQuery?

2008-10-13 Thread Dave Methvin
As Erik says, a sample page would help. I am guessing that you may be using IE6/7, where getElementById returns elements that match the name attribute as well. Also, what doctype are you using? I don't think any of the common ones support a name attribute for the div element.