perform a function when form values change
<p>Im trying to call a function when the value of any form value changes.</p>

<p>This is my code:</p>

<pre><code>function reload()
{
  tmp = findSWF("chart");

  x = tmp.reload("chart.php", false);
}

function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window["ie_" + movieName];
  } else {
    return document[movieName];
  }
}

$(".formclass").change(function() {
    reload();
});
</code></pre>

<p>If i make a link with an <code>onclick</code> action, it works, but using the last <code>.change</code> action, nothing happens.
Ideally, i could also pass the name and value of what has changed to that url</p>
