You can't, obj.setProperty('selected', 'true'); will just set the value to true. Best you can do is to set _selected to true then with regex you can change _selected to selected,

I wrote this awhile back:
http://jsfiddle.net/hazlema/BwczU/

Ran into the same issue.  Thats how I delt with it.

On 4/23/2012 12:16 AM, Steve Onnis wrote:

How can i get mootools to actually write the "selected" property into the HTML when creating new <option> elements?

It seems to select the option fine but it doesn't actually write the property to the html

Steve


Reply via email to