On 12/18/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> > > 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";
>
> Thanks Bob, that fixed that problem. Guess I should really be learning
> to use mochikit with all the browsers at the same time and not just
> trying stuff out randomly, Firefox is making me a lazy programmer! :/

s/mochikit/javascript/. This is basic DOM and HTML stuff. innerHTML
means literally what it says. There is no HTML inside an input tag,
they're empty. Why would you expect innerHTML to change the value
attribute?

Not that innerHTML has anything to do with MochiKit anyway. It's not
really used anywhere at all.

-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to