I filed a ticket, but it was marked as "nofix." Apparently there are
inconsistencies in changing the "type" attribute in input fields and
they aren't meant to have their type attribute changed. So the
alternative is to simply remove the input field and create a new one
of the desired type using jQuery (rather than changing just the
attribute).

-Cody

On May 1, 2:35 pm, Cody <[EMAIL PROTECTED]> wrote:
> I can confirm this is happening. We had to revert back to an older
> jQuery (1.1.4). Any ideas if a ticket has been filed for this bug?
>
> -Cody
>
> On Mar 22, 3:36 pm, claudiopro <[EMAIL PROTECTED]> wrote:
>
> > Apparently, jQuery can't set the "type" attribute of html input fields
> > to look like Cocoasearchfields inSafari.
>
> > jQuery version: 1.2.3Safariversion: 3.1 (525.13)
>
> > Proof follows:
>
> > <html>
> > <head>
> > <script src="jquery-1.2.3.min.js"></script>
> > <script>
> > $(function() {
> > // this works:
> > //document.getElementById('s_f').setAttribute('type', 'search');
> > // these don't work:
> > $('#s_f').attr('type', 'search');
> > $('#s_f').attr({type: 'search'});});
>
> > </script>
> > </head>
> > <body>
> >         <input type="text" id="s_f" />
> > </body>
> > </html>
>
> > Best regards,
>
> > --
> > Claudio Procidahttp://www.emeraldion.it

Reply via email to