Have I got the syntax incorrect for this jquery else if statement?
<p>Edit: <strong>Question resolved. Syntax error.</strong></p>

<p>Here it is (the if part omitted as I know it is correct)</p>

<pre><code>else if($('.now [name="stuff"]').val() !==''){...}
</code></pre>

<p>I want to check the value of the input field withhin the class 'now' and with the name 'stuff' and if the value is not empty, then execute the code within the braces.</p>

<p>have I made a mistake? as my code isn't working.</p>

<p>Edit here is the code in context: (NOTE - if i delete the else if part the code runs. Currently when I try to run the below code firefox tells me the function which contains the code is undefined)</p>

<pre><code>if($("#form").length==0) {
           ....
    }
    else if($('.now [name="stuff"]').val() !==''){
    $.post("ajax.php", {
            "action": "refresh",
            "app_id": app,
            "type": type,
            "page": page,
            "test": "test";
            "refresh": "1",
            "br": $("#br").val(),
            "brtwo": $('.current [name="brtwo"]').val(),
        }, function(data) {
            $(".current").html(data);
            scrollTo(0, 0);
        });

    }
    else { ... 
     }
</code></pre>
