Question: I have this working in C#, but don't know where to go with Objective C (Xcode specifically).

I have 8 buttons

Stack1, Stack2, etc.

I want to choose Stack(variable) and change the image.

In C# I used 
Button Stacks = this.Controls["Stack" + StackNumber.ToString()] as Button;
Stacks.BackgroundImage = .....

Can I do this in Objective C also?

Answer: 
You can do this with $.each():

```
$('#step_1').find('SELECT').each( function() {
    if( $(this).val() === 'select one' ) {
        alert('Please select yes or no!');
        return false;
    }
});

```

Note that returning false will prevent the loop from continuing once a missing field is found.
Your test fails because `length` is not a method. It is a property. Remove the `()`. If you look in your debugger you should see a warning about this.

Also, your selector should be checking the selected option, not the select list itself.

<http://jsfiddle.net/7PPs4/>

```
$('#submit').click(function() {
    $foo = $('#step_1 select option:selected[value="select one"]');
    alert($foo.length);
});

```