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" <gvang...@gmail.com>
Para: "jQuery (English)" <jquery-en@googlegroups.com>
Enviada em: sexta-feira, 23 de janeiro de 2009 19:56
Assunto: [jQuery] id question



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:
<input id="id{0}___" type="text" onblur="show_value()" value="123"
maxlength="10" size="10" name="id{0}___" />

show_value()  run the alerts above

Thanks
gvg

Reply via email to