> Para:
> Enviada em: sábado, 24 de janeiro de 2009 15:04
> Assunto: [jQuery] Re: id question
>
>
>
> Better yet, don't use such characters for IDs and get on with life.
>
> On Sat, Jan 24, 2009 at 5:05 AM, Mauricio (Maujor) Samy Silva
> wrote:
>>
&
Brian,
Weird charaters in ID values are often auto generated by some CMS, so there
is no way to avoid them.
Maurício
-Mensagem Original-
De: "brian"
Para:
Enviada em: sábado, 24 de janeiro de 2009 15:04
Assunto: [jQuery] Re: id question
Better yet, don't use such
t;
> -Mensagem Original- De: "gvangass"
> Para: "jQuery (English)"
> Enviada em: sábado, 24 de janeiro de 2009 07:23
> Assunto: [jQuery] Re: id question
>
>
>
> if i use the code: alert($('#id\\{0\\}___').val());
> the alert box show
Use the attr() sintax to retrieve an id value:
alert( $('#id\\{0\\}\\___').attr('id'));
Maurício
-Mensagem Original-
De: "gvangass"
Para: "jQuery (English)"
Enviada em: sábado, 24 de janeiro de 2009 07:23
Assunto: [jQuery] Re: id questio
if i use the code: alert($('#id\\{0\\}___').val());
the alert box shows a value of: undefined
On Jan 24, 12:24 am, jay wrote:
> based on this wouldn't the syntax be alert($('#id\\{0\\}___').val
> ()); ?
>
> On Jan 23, 5:19 pm, "Mauricio \(Maujor\) Samy Silva"
>
> wrote:
> > You must escape prop
based on this wouldn't the syntax be alert($('#id\\{0\\}___').val
()); ?
On Jan 23, 5:19 pm, "Mauricio \(Maujor\) Samy Silva"
wrote:
> You must escape properly weird characters in ID values.
> Have a look
> at:http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_...
>
> Maurício
You must escape properly weird characters in ID values.
Have a look at:
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
Maurício
-Mensagem Original-
De: "gvangass"
Para: "jQuery (English)"
Enviada em: sexta-feira, 2
I would assume that it doesn't like the \{0} part.. is this server-
side code or something?
On Jan 23, 4:56 pm, gvangass wrote:
> Hi
>
> Is there a reason why: alert($('#id\{0}___').val());
> not displaying the value, also no error with Firebug
>
> but
>
> alert(document.getElementById("id{0}___
8 matches
Mail list logo