Error: uncaught exception: Syntax error, unrecognized expression: inputnum
<p>I've inherited another developer's code for a project I'm working on. Here's an example of their code - notice the first comment... </p>

<pre><code>function disableSuggestButton(themePath) {
    // could not see a better way of doing this :(
    var row = $("input[type='text']:inputnum:inputnumsmall");
    $(row).each(function () {
        if ($(this).attr("disabled") == true) {
            var btn = $(this).closest("tr").find(".btnSuggest")
            $(btn).hover(function () {
                $(this).css({ backgroundImage: 'url(' + themePath + '/images/buttons/btnSuggest.png)' }).css('cursor', 'default');
            }, function () {
                $(this).css({ backgroundImage: 'url(' + themePath + '/images/buttons/btnSuggest.png)' }).css('cursor', 'default');
            });
            $(btn).removeAttr("title").removeAttr("href");
        }
    });
}
</code></pre>

<p>I needed to upgrade the version of jQuery (from 1.3.2 to 1.4) however when doing this the following line: </p>

<pre><code>var row = $("input[type='text']:inputnum:inputnumsmall");
</code></pre>

<p>produces the following error: </p>

<blockquote>
  <p>Error: uncaught exception: Syntax error, unrecognized expression:
  inputnum</p>
</blockquote>

<p>How can I improve on the previous devloper's selector? inputnum &amp; inputnumsmall are CSS classes.</p>

<p>Thanks</p>
