Try double backslash escaping the second #-sign:

$("#\\#SAM1").text("hello");

On Feb 10, 7:36 am, Shredder36 <shredde...@gmail.com> wrote:
> Hello,
>
> How do I find an element who's id starts with #?
>
> For example:  <textarea id="#SAM1"></textarea>
>
> the following does not seem to work
>
>  $("##SAM1").text("hello");
>
> Any help is greatly appreciated.  thank you,
>
> Sam

Reply via email to