jquery post undefined in firebug
<p>On 2 of my elements in a form, I am receiving 'undefined' in firebug. I have tried to trace the error, but keep hitting a brick wall, hence the post. One of the areas with the error is in the divId block and the other is the #company in the form. I would be grateful if someone could check my code and point out my error. Thanks</p>

<pre><code>// Function to add box

function addbox() {

    $("#boxform").dialog({
        autoOpen: false,
        resizable: true,
        modal: true,
        title: 'Submit a box intake request',
        width: 470,
        beforeclose: function (event, ui) {
            $("#addbox").html("");
            $("#divId").html("");

        }

    });

    $('#boxsubmit').click(function () {

        var company = $('.company').val();
        var box = $('.box').val();
        var service = $('#service').val();
        var authorised = $('.authorised').val();
        var address = $('.address').val();
        var data = 'company=' + company + '&amp;box=' + box + '&amp;authorised=' + authorised + '&amp;service=' + service + '&amp;address=' + address;
        $.ajax({
            type: "POST",
            url: "boxesadd.php",
            data: data,
            success: function (data) {
                $("#boxform").get(0).reset();
                $('#addbox').html(data);
                //$("#form").dialog('close');
                $("#flex1").flexReload();

            }
        });
        return false;

    });

    $("#boxform").dialog('open');

}
</code></pre>

<p>html</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      $(function() {
    $("#company").live('change', function() { if ($(this).val()!="")
    $.get("../../getOptions.php?customer=" + $(this).val(), function(data) {
    $("#divId").html(data); }); }); 
      });
&lt;/script

&lt;form id="boxform" method="post" class="webform" name="boxform" /&gt;

        &lt;label for="company"&gt;Select a Company:&lt;/label&gt;
        &lt;select name="company" id="company" /&gt;
          &lt;option SELECTED VALUE=""&gt;Select a Company&lt;/option&gt;
          &lt;?php
           do {  
           ?&gt;
          &lt;option value="&lt;?php echo $row_Recordsetcust['customer']?&gt;"&gt;&lt;?php echo $row_Recordsetcust['customer']?&gt;&lt;/option&gt;
          &lt;?php

          } 
          while ($row_Recordsetcust = mysql_fetch_assoc($Recordsetcust));
          $rows = mysql_num_rows($Recordsetcust);
          if($rows &gt; 0)

         {
          mysql_data_seek($Recordsetcust, 0);
          $row_Recordsetcust = mysql_fetch_assoc($Recordsetcust);
                    }

          ?&gt;
          &lt;/select&gt;

          &lt;!--- displays the address from the change function --&gt;
          &lt;div id="divId"&gt;&lt;/div&gt;
</code></pre>
