Again the issue with that is in a single selec box type, even the first open is "selected" which is not what i want. i only wat to get it if the option tag has the "selected='selected'" attribute in it. the :selected way works correctly though
_____ From: Thierry bela nanga [mailto:[email protected]] Sent: Saturday, 24 October 2009 5:10 AM To: [email protected] Subject: [Moo] Re: getting the selected option in a select box selected = $(selectbox).get('value'), will return the value of the selected element, not the element itself, On Fri, Oct 23, 2009 at 7:00 PM, CroNiX <[email protected]> wrote: selected = $(selectbox).get('value') I believe On Oct 23, 5:29 am, Savageman <[email protected]> wrote: > It does exists in Mootools core. I think it's safe to use! ;) > > On Oct 23, 11:28 am, Daniel Lohse <[email protected]> > wrote: > > > No, you're right, :checked exists but not :selected. I stand corrected > > and am very sorry about this error. > > > Daniel -- http://tbela99.blogspot.com/ fax : (+33) 08 26 51 94 51
