Well i can get the defaultvalue by direct accessing it, but i wonder
why not via jquery. It's not very consistent to access all via the
attr and defaultValue direct and i don't like that.
W3schools says it's a w3c complaint attribute so i think it should be
accessible.
This is what they say : "Sets or returns the default value of a text
field".

So i want it to be added and not some kind of workaround, because i
know one myself.

On 21 apr, 20:13, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> I think you want attr("value") for the value in the dom, vs ,val() for the
> current contents.
>
> defaultValue is a shortcut to get to the defined value from the html.... I
> haven't used it but I have seen similar things with form items.
>
> On 4/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > While i can acces a default value of an input field by:
> > field.defaultValue
>
> > i can't access it by $(field).attr('defaultValue')
> > All other attributes i can acces via the .attr() method but not this
> > one.
> > Can it be added?
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to