Filtering elements out of a jQuery selector
<p>I have a page that selects all the elements in a form and serializes them like this:</p>

<pre><code>var filter = 'form :not([name^=ww],[id$=IDF] *,.tools *)';
var serialized = $(filter).serialize();
</code></pre>

<p>This works, unless the form gets around 600+ elements.  Then the user gets s javascript error saying that the script is running slow and may make their browsers unresponsive.  It then gives them the option to stop running the script.</p>

<p>I have tried running the filters separately, I have tried using .not on the selectors, then serializing them, but I run into one of two problems.  Either it runs faster without the error, but also does not filter the elements, or it does filter the elements and gives me the slow script error.</p>

<p>Any ideas?</p>
