[Project_owners] how to get current value of a field entered by
grimholtz at yahoo.com
Sun Sep 4 09:14:09 EDT 2005
Well, slight correction. It works when <input type="text"/> but not
<input type="checkbox". In the latter case, those attributes are
Do I need to handle checkboxes differently?
--- Eric Jung <grimholtz at yahoo.com> wrote:
> --- Neil <neil at parkwaycc.co.uk> wrote:
> > Eric Jung wrote:
> > > dump("value=" + target.attributes["value"].value + "\n");
> > >
> > >
> > I must say I've never seen that syntax before, I assume it means
> > the
> > same as target.getAttribute("value")?
> It defined in the W3C DOM Node interface, while getAttribute("foo")
> is in the Element interface.
> > Anyway, I guess you're
> > looking for
> > target.value instead.
> Yes, that worked... thank you!
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Project_owners mailing list
> Project_owners at mozdev.org
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Project_owners