[jQuery] .selectedIndex VS jQuery

2006-12-12 Thread jazzle
Why doesn't $(#b6).selectedIndex = $(#s6).selectedIndex; work? (Assuming #b6 and #s6 are similar select boxes of course. Copying billing to shipping address BTW) I know it's not really how jQuery code usually works, but would like to understand why not. -- View this message in context:

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Chris Domigan
$() gets you a jQuery object, so you can use it with jQuery methods etc. To access selectedIndex you need the actual element, so try: $(#b6)[0].selectedIndex = $(#s6)[0].selectedIndex; Chris ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Klaus Hartl
jazzle schrieb: Why doesn't $(#b6).selectedIndex = $(#s6).selectedIndex; work? (Assuming #b6 and #s6 are similar select boxes of course. Copying billing to shipping address BTW) I know it's not really how jQuery code usually works, but would like to understand why not. What $(#b6)

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Olivier Percebois-Garve
Hi I followed the discussions about 'how to make jquery more popular' and I just want to point out that this is the kind of things that should be learned to newcomers in a crash course. $() is easy to understand as a steroid getElementById(), but to understand that it returns a jQuery object

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Jörn Zaefferer
Olivier Percebois-Garve schrieb: Hi I followed the discussions about 'how to make jquery more popular' and I just want to point out that this is the kind of things that should be learned to newcomers in a crash course. $() is easy to understand as a steroid getElementById(), but to

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Dave Methvin
$() is easy to understand as a steroid getElementById(), but to understand that it returns a jQuery object belongs more to the innards of jQuery. I'm using for time to time jQuery for 4 months and it is the kind things I'm avid to better understand. Do you think it would help the generic

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Olivier Percebois-Garve
Jörn Zaefferer wrote: Olivier Percebois-Garve schrieb: Hi I followed the discussions about 'how to make jquery more popular' and I just want to point out that this is the kind of things that should be learned to newcomers in a crash course. $() is easy to understand as a steroid

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread bander
I think the two most confusing and frustrating things for jQuery beginners (speaking as one myself) are these: 1) Needing to use the $() operator in every statement, even if you're referring to a variable which you got from a jQuery call in the first place, as SRobertJames has mentioned (

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Kelvin Luck
Well yes. Generally speaking this among the things where the framework is extending the language. Chaining seemed to be one of the aspects of jquery that peoples seemed like the most, but I did not found a lot of literature about it. What is or is not possible in a chain ? how to

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Mike Alsup
jquery objects - chaining - closures That's the stuffs I wanna to master in order to claim that I really feel confident with jquery. The key here is that you really do need to understand javascript. jQuery is a javascript library. It uses objects and closures. It manages the dom and

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Aaron Heimlich
This needs to be post somewhere on the jQuery site and getjquery.org very prominently. Excellent post Mike (damn, man you're on a roll!). On 12/12/06, Mike Alsup [EMAIL PROTECTED] wrote: jquery objects - chaining - closures That's the stuffs I wanna to master in order to claim that I