<p>I'm trying to submit a form with javascript. Firefox works fine but IE complains that "Object doesn't support this property or method" on the submit line of this function:</p>

<pre><code>function submitPGV(formName, action)
{
    var gvString = "";

    pgVisibilities.each(function(pair) {
        gvString += pair.key + ":" + pair.value + ",";
    });

    $('pgv_input').value = gvString;

    var form = $(formName);
    form.action = action;
    form.submit();
}
</code></pre>

<p>Called here:</p>

<pre><code>&lt;a href="javascript:submitPGV('ProductGroupVisibility','config/productgroupvis/save')"&gt;
</code></pre>

<p>Here's the form:</p>

<pre><code>&lt;form id="ProductGroupVisibility" action="save" method="post"&gt;
    &lt;input type="hidden" name="ows_gv..PGV" id="pgv_input" value=""/&gt;
&lt;/form&gt;
</code></pre>

<p>Any ideas?</p>

Are you sure you have your JavaScript library loaded? (jQuery or Prototype)
It worked for me in IE7 with Prototype.
Try:
```
```
alert($('ProductGroupVisibility').id)
```
```
See if you get an error.