Use a different CMS?

On Sat, Jan 24, 2009 at 12:19 PM, Mauricio (Maujor) Samy Silva
<css.mau...@gmail.com> 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" <bally.z...@gmail.com>
> Para: <jquery-en@googlegroups.com>
> 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
> <css.mau...@gmail.com> wrote:
>>
>> Use the attr() sintax to retrieve an id value:
>>
>> alert( $('#id\\{0\\}\\___').attr('id'));
>>
>> Maurício
>>
>> -----Mensagem Original----- De: "gvangass" <gvang...@gmail.com>
>> Para: "jQuery (English)" <jquery-en@googlegroups.com>
>> 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 shows a value of: undefined
>>
>> On Jan 24, 12:24 am, jay <jay.ab...@gmail.com> wrote:
>>>
>>> based on this wouldn't the syntax be alert($('#id\\{0\\}___').val
>>> ()); ?
>>>
>>> On Jan 23, 5:19 pm, "Mauricio \(Maujor\) Samy Silva"
>>>
>>> <css.mau...@gmail.com> wrote:
>>> > You must escape properly weird characters inIDvalues.
>>> > Have a look >
>>> >
>>> > at:http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_...
>>>
>>> > Maurício
>>>
>>> > -----Mensagem Original-----
>>> > De: "gvangass" <gvang...@gmail.com>
>>> > Para: "jQuery (English)" <jquery-en@googlegroups.com>
>>> > Enviada em: sexta-feira, 23 de janeiro de 2009 19:56
>>> > Assunto: [jQuery]idquestion
>>>
>>> > > 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}___").value);
>>> > > displays it ?
>>>
>>> > > The html looks like this:
>>> > > <inputid="id{0}___" type="text" onblur="show_value()" value="123"
>>> > > maxlength="10" size="10" name="id{0}___" />
>>>
>>> > > show_value()  run the alerts above
>>>
>>> > > Thanks
>>> > > gvg- Hide quoted text -
>>>
>>> > - Show quoted text -
>>
>>
>
>

Reply via email to