I didn't know you could cal var x = $('selector'); x[0] and have it
work. Try changing this line to:

$('#'+inputArray.eq(0).attr('name')).removeClass("error");

Also, I can't see the rest of the code, but why are you re-selecting
the current element like you are? The name and ID are the same, so
taking the element you already have and fetching it again through a
different means seems wasteful and unnecessary?

On Jan 16, 9:23 am, bryce4president <brycekmar...@gmail.com> wrote:
> This error seems to be rearing its ugly head in FF3 using jquery 1.3.
> When I was using the latest 1.2.6 for jquery I would get a little
> warning in firebug that said...
>
> Empty string passed to getElementById().
>
> This wouldn't cause anything bad to happen and things would move on
> just fine.  IE7 didn't do anything strange.
>
> But with the new 1.3 it stops both browers dead in its tracks with a
> real error.  Here is a simplified version that replicates the error...
>
> <html>
> <head>
> <script type="text/javascript" src="jquery-1.3.min.js"></script>
> <script type="text/javascript">
> $(function(){
>                 $(':text').keyup(function(){
>                         var inputArray = $('input');
>                         for(i=0;i<=inputArray.length;i++)
>                         {
>                                 
> $('#'+$(inputArray[i]).attr('name')).removeClass("error");
>                         }
>                         $('#submit').attr('disabled',false);
>                 });});
>
> </script>
> </head>
>
> <body>
>                                 <form id="form1" method="post" 
> action="SetSearch" >
>                                         Customer Number
>                                         <input type="text" class="numeric" 
> id="number" name="number"
> maxlength="6" tabindex="2" size="6" />
>                                         <input type="submit" tabindex="6" 
> value="Search" id="submit" />
>                                 </form>
> </body>
> </html>
>
> Any help would be greatly appreciated.
> Bryce

Reply via email to