Unforunately it's just turned out that there's anothor isssue behind
this. You can follow the ticket if you want update on this, I guess it
will be solved soon.

On Jan 19, 10:46 am, 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