On Feb 23, 1:00 pm, Hector Virgen <[email protected]> wrote:
> Hello,
>
> I am writing a plugin that takes a text input (<input type="text"/>) and
> hides it using $(input).hide(). The plugin then uses other controls to
> update the value of the text input.
>
> I am using Element.writeAttribute() to update the value, but it does not
> seem to work when the input is hidden. However, using the old-fashioned
> value property to update it seems to work. Is there a reason why
> writeAttribute does not work with hidden elements, or should I be using a
> different method?

If you know the "old fashioned" way works, and it is extremely likely
that it always will as it is based on a fundamental javascript
language feature, why would you use writeAttribute at all?


--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to