Oh yeah, if you want to put text in a textarea, you're suppose to use
val() instead of text():

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

On Feb 10, 9:04 am, James <james.gp....@gmail.com> wrote:
> 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