Tuesday, September 29, 2009

[jQuery] array object

Can I get value and text of an option and put them into an array
object?

<select>
<option value="c1">britney</option>
<option value="c2">jackson</option>
</select>

I'd like to have something like this arrayob = {c1:"britner",
c2:"jackson"};

No comments: