[Project_owners] how to get current value of a field entered by user?

Eric Jung 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
undefined.

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.
> 
>
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-84CF096
> 
> 
> > 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 
> http://mail.yahoo.com 
> _______________________________________________
> 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 
http://mail.yahoo.com 


More information about the Project_owners mailing list