On 12/18/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2006-18-12 at 02:10 -0200, Jorge Godoy wrote:
> > iain duncan <[EMAIL PROTECTED]> writes:
> >
> > > I was under the ( possibly mistaken ) impression that the following was
> > > legal mochikitness:
> > >
> > > $("element_id").innerHTML = "Foobar";
> > >
> > > But it seems to be choking ie ( though I could be wrong there too, as I
> > > am new to debugging js on ie, oh it's fun! )
> > >
> > > Is something wrong with the above? Better way to do that? Works fine on
> > > firefox.
> >
> >
> > If 'Foobar' fixed and known in advance? What type of element is
> > "element_id"?
>
> Ok, I've established that getting the element is working, it's changing
> it's text child by doing
>
> .innerHTML = "Foobar"
>
> that is not working. In this case, the element in question is an input
> box in a form. On Firefox, I can change the text in the input that way,
> but IE won't let me.
input tags don't have innerHTML, that's why it's not doing anything.
$("input").value = "foo";
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---