from jquery faq

 // Does not work
 $("#some.id")

 // Works!
 $("#some\\.id")

http://docs.jquery.com/Frequently_Asked_Questions



2008/10/16 andrazk <[EMAIL PROTECTED]>

>
> Hi!
>
> We're working with a java workframe that creates element ID-s
> separated with dots and thus we have problems using the jQuery
> selectors.
>
> Example:
> <input type="text" id="object.member.property" value="test"/>
>
> <script type="text/javascript">
>  t = $('#object.member.property').value;
>  alert(t);
> </script>
>
> Of course, this script won't display properly the value "test".
> I've tried the $('#object\.member\.property') also but still obtained
> no result.
>
> Since the dot is a CSS selector, what can be done about this?
>

Reply via email to