(super easy, n00b prototype.js question) Hi All: I have the following <div id="foo"></div> in the DOM. Is there any protoype.js method that I can invoke from Javascript to set the value of foo to something (For e.g.: "<b>bar</b>"). Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ESPNDev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-May-02 05:04 UTC
Re: Set value of dom element using prototype.js
$(''foo'').update(''<b>bar</b>'')
On May 1, 9:15 pm, hareesh
<hareesh.nagara...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> (super easy, n00b prototype.js question) Hi All: I have the following
> <div id="foo"></div> in the DOM. Is there any
protoype.js method that
> I can invoke from Javascript to set the value of foo to something (For
> e.g.: "<b>bar</b>"). Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---