View Single Post
Old 03-08-2010, 06:19 PM  
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Ok I have like 20 jquery.com pages open trying to figure out how to do this but none of them work, lets say I have a few of these:
Quote:
<select id=stuff[0] name=stuff[0]>
<option value="thing">Thing</option>
<option value="other_thing">Other Thing</option>
</select>

<select id=stuff[1] name=stuff[1]>
<option value="thing">Thing</option>
<option value="other_thing">Other Thing</option>
</select>
Ok, I need to go through the stuff[] array and find out if ANY of them have "thing" selected. Major confusion.

I think the closest I've came is:
Quote:
var wtf=$('#stuff[0]').val();
No luck. Tried the inArray()'s and indexOf()'s and they don't seem to return anything either.
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 03-08-2010 at 06:24 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote