[jQuery] Re: Working with identical objects

2009-02-15 Thread Tze Yang Ng
According to the jquery doc, $('option:selected', ModulesListObj).val() returns the content of the value attribute of the first matched element. U may wish to try something like the following to get the desired array: $('something', ModulesListObj).map(function(){ return $(this).val(); }); TY

[jQuery] Re: Working with identical objects

2009-02-15 Thread ShurikAg
Actually this: alert(jQ("option:selected", ModulesListObj).val()) works perfectly right, if there is only one select object on the page. If there are two or more it always picks up the first one. On Feb 15, 1:04 pm, Ricardo Tomasi wrote: > That's quite a lot of code to read through in an email.

[jQuery] Re: Working with identical objects

2009-02-15 Thread Ricardo Tomasi
Sorry for the double messages. Actually that could simply be: alert( jQ(this).val() ) as val() called on a will return the selected option's value. On Feb 15, 6:04 pm, Ricardo Tomasi wrote: > That's quite a lot of code to read through in an email. Try reducing > your code to the least necessa

[jQuery] Re: Working with identical objects

2009-02-15 Thread Ricardo Tomasi
That's quite a lot of code to read through in an email. Try reducing your code to the least necessary to exemplify your problem, then someone might take the time to help. >From what I see: alert(jQ("option:selected", ModulesListObj).val()) This is catching all the selected options inside Modules

[jQuery] Re: Working with identical objects

2009-02-12 Thread ShurikAg
I don't believe that nobody have any suggestion...

[jQuery] Re: Working with identical objects

2009-02-12 Thread ShurikAg
Here is my code: /** * Page template part setup div */ (function(jQ){ /** * form state */ var STATE = "new"; /** * Request URL */ var RequestUrl = rootUrl+"/aranAjx.php?mod=pages"; /** * indicator if there is o