The change in value won't appear in the HTML (in firebug for example),
but the value *will* change and be submitted with the form. That's
standard DOM scripting behaviour. There is no reason to change the
attribute in the HTML unless you want to print it somewhere.

On Sep 2, 5:55 pm, "Rick Faircloth" <r...@whitestonemedia.com> wrote:
> I read that in an article dated October 17, 2008, that it was not possible
> to change the actual
>
> HTML in the DOM of the "value" attribute of a text input using
> $(this).val('myNewValue');
>
> My experiments just now bear this out.
>
> Is this still true?  The writer of the article developed a work-around using
> a hidden input and
>
> manipulating its value with a rel to the original input.  Is this still the
> best way?
>
> Thanks for any insights.
>
> Rick
>
> ----------------------------------------------------------------------------
> ---------------------------------------
>
> "Those who hammer their guns into plows will plow for those who do not."  -
> Thomas Jefferson

Reply via email to