Syntax error, unrecognized expression: [name=ctl00$MainContent$mainProgress]
<p>I am using jquery 1.3.2 but I have updated to the latest version:</p>

<p>The following does not work with the latest version of jquery - what is going wrong here??</p>

<pre><code>var input = $(this);

            // get the associated label using the input's id
            var label = $('label[for=' + input.attr('id') + ']');

            //get type, for classname suffix 
            var inputType = (input.is('[type=checkbox]')) ? 'checkbox' : 'radio';

            // wrap the input + label in a div 
            $('&lt;div class="custom-' + inputType + '"&gt;&lt;/div&gt;').insertBefore(input).append(input, label);

            // find all inputs in this set using the shared name attribute
            var allInputs = $('input[name=' + input.attr('name') + ']');
</code></pre>
