- From: Christopher Reed <creed@webucator.com>
- Date: Thu, 23 Jan 2014 10:53:09 -0600
- To: 'elcio abrahão' <elcio_abrahao@yahoo.com.br>, "'Ricardo Vercesi'" <rvercesi@gmail.com>
- Cc: <public-html5spec@w3.org>
- Message-ID: <011201cf185b$99decdc0$cd9c6940$@webucator.com>
Elcio,
Look at this line:
<form name=”form1″ oninput=”if(document.form1.tipo1.checked==true){…}else{…}
Based on your output, the above should be
if (tipo.value = 1){…}else{…}
Otherwise, I would think that you could remove “tipo” from your for attribute.
Hope this helps!
Christopher Reed
“The oxen are slow, but the earth is patient”
From: elcio abrahão [mailto:elcio_abrahao@yahoo.com.br]
Sent: January 23, 2014 8:59 AM
To: Ricardo Vercesi
Cc: public-html5spec@w3.org
Subject: Re: HTML5 tag specs [via HTML5 Specifications Community Group]
Hi Ricardo !
So I did !!!! I tested element id and element name...
They did not work.... I tested on FireFox and Chrome for MAC OS 10...
That's the reason I m writing to this forum... It's look like that the "for" attribute did not work with "radio" type fields ....
Could be my browsers too... but I do not think so....
Did you know some one that could check this for us ??
Thanks !
..................
Change is the law of life. And those who look only to
the past or the present are certain to miss the future.
John F. Kennedy [in a Speech, June 25, 1963].
Em Quinta-feira, 23 de Janeiro de 2014 12:54, Ricardo Vercesi <rvercesi@gmail.com <mailto:rvercesi@gmail.com> > escreveu:
In that case, it should be <output for="element_id">
Ricardo Vercesi
web and beyond...
On Thu, Jan 23, 2014 at 2:17 PM, elcio abrahão <elcio_abrahao@yahoo.com.br <mailto:elcio_abrahao@yahoo.com.br> > wrote:
Hi Ricardo !
Thanks for your reply !
My problem is not on the "for" used on the LABEL tag.
There is other "for" attribute on the <OUTPUT> tag !!!!
This "for" attribute is to add a trigger event on the form fields. When I change some value on the fields cited on the "for" atribute the HTML5 will fire the javscript inside the <oninput> tag.
This "for" attribute is not related to the "for" attribute used with de <LABEL> tag...
Thanks again !
Elcio A.
..................
Change is the law of life. And those who look only to
the past or the present are certain to miss the future.
John F. Kennedy [in a Speech, June 25, 1963].
Em Quinta-feira, 23 de Janeiro de 2014 9:39, Ricardo Vercesi <rvercesi@gmail.com <mailto:rvercesi@gmail.com> > escreveu:
The "for" attribute is used usually within the label tag and should refer to the name of the element. So if you have a radio button named "myRadio" the for attribute of your label should be "myRadio" as well and not "radio".
Ricardo Vercesi
web and beyond...
On Wed, Jan 22, 2014 at 7:58 PM, Elcio Abrahao <elcio_abrahao@yahoo.com.br <mailto:elcio_abrahao@yahoo.com.br> > wrote:
Hi Guys !!!
My name is Elcio Abrahão and I m an University Teacher in São Paulo - Brazil.
I m using HTML5 to teach programing for my students the form did not change the
output value when I add a field type "radio" to the "for" attribute. Is this a
project specification or this is a [...]
----------
This post sent on HTML5 Specifications Community Group
'HTML5 tag specs'
http://www.w3.org/community/html5spec/2014/01/22/html5-tag-specs/
Learn more about the HTML5 Specifications Community Group:
http://www.w3.org/community/html5spec
Received on Thursday, 23 January 2014 17:23:26 UTC