Hello, it's a known issue: http://dev.jquery.com/ticket/3778
There's some solution in the ticket but needs a proper patch and a bit
testing. I'll try to make it tonight if I can get home in time ;)

On jan. 19, 10:46, Jedrzej Majko <jdr...@gmail.com> wrote:
> Hello,
> I have strange problem with attribute StartsWith in new version of
> jQuery.
> This code gives 'FOUND' in 1.2.6 and 'NOT FOUND' in 1.3.
> There's a problem with [name^='item['], [name^='item[1]'] works fine.
> Is this a bug, or expected behavior?
>
> Code:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> <head>
>         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
>         <script type="text/javascript" src="http://jqueryjs.googlecode.com/
> files/jquery-1.3.js"></script>
>         <script type="text/javascript">
>                 $(document).ready(function(){
>                         if($("[name^='item[']").length==0){
>                                 alert('NOT FOUND');
>                         }
>                         else {
>                                 alert('FOUND');
>                         }
>                 });
>         </script>
> </head>
> <body>
>         <input type="text" name="item[1]" value="1"/>
> </body>
> </html>

Reply via email to