[jQuery] Array values disappear when ready event fires

2009-01-28 Thread Emili Calonge
I have some old jsp pages with bad coding, where I created javascript arrays in the jsp code, so in the end I've got an html page with lots of script tags where I add values to a Javascript array. I know it's a really ugly way of doing things, but that's the only way I thought of at the time. Now

[jQuery] selected option not cloned

2009-01-19 Thread Emili Calonge
Hi, I'm trying to clone a select that has an option selected, but the new select (even if I use clone(true)) hasn't the correct option selected. The cloned select always has selected the first option. I don't know if this should work the way I want it to, but I think clone is supposed to make an