What's wrong with this HTML please?

I probably can’t see the wood for the trees. The code below (taken
from ‘View Source’ in Safari) doesn’t show the ‘Yes’ radio button as
‘On’ although it says it is checked. Neither radio button is ‘On’.


<tr >
<td>
Active
</td>
<td  style="padding:4px">
<label for="gm_person-active-261-Yes" >Yes</label>
<input id="gm_person-active-261-Yes" type="radio" name="active" 
value="Yes" checked="checked" 
onchange=addToUpdt('gm_person-active-261-Yes') />
<label for="gm_person-active-261-No" >No</label>
<input id="gm_person-active-261-No" type="radio" name="active" 
value="No"  onchange=addToUpdt('gm_person-active-261-No') />

</td>
</tr>

Any ideas?


David Ledger - Freelance Unix Sysadmin in the UK.
email@hidden
www.ivdcs.co.uk


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When you say “Neither radio button is ‘On’”, what are you seeing there, and where are you seeing it? I just pasted your HTML into a table tag in a new blank document in TextMate and previewed it there. The Yes button is checked, therefore it is marked as “On” from my perspective. If I were to submit this form, I suspect I would see ‘active’: ‘Yes’ in the parameters.

Walter

On Feb 18, 2014, at 3:36 PM, David Ledger wrote:

I probably can’t see the wood for the trees. The code below (taken from ‘View Source’ in Safari) doesn’t show the ‘Yes’ radio button as ‘On’ although it says it is checked. Neither radio button is ‘On’.


<tr >
<td>
Active
</td>
<td  style="padding:4px">
<label for="gm_person-active-261-Yes" >Yes</label>
<input id="gm_person-active-261-Yes" type="radio" name="active" value="Yes" checked="checked" onchange=addToUpdt('gm_person-active-261-Yes') />
<label for="gm_person-active-261-No" >No</label>
<input id="gm_person-active-261-No" type="radio" name="active" value="No"  onchange=addToUpdt('gm_person-active-261-No') />

</td>
</tr>

Any ideas?


David Ledger - Freelance Unix Sysadmin in the UK.
email@hidden
www.ivdcs.co.uk


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

At 15:41 -0500 18/2/14, Walter Lee Davis wrote:

When you say “Neither radio button is ‘On’”, what are you seeing
there, and where are you seeing it? I just pasted your HTML into a
table tag in a new blank document in TextMate and previewed it
there. The Yes button is checked, therefore it is marked as “On”
from my perspective. If I were to submit this form, I suspect I
would see ‘active’: ‘Yes’ in the parameters.

Walter

Walter,

By ‘On’ I mean ‘Set’, highlighted with blue spot. What I see is
‘Off’, empty - no blue spot in either ‘Yes’ or ‘No’ button.

If that code works for you then the code must be ok and I’m not
mis-seeing things. Maybe the surrounding stuff confuses Safari.

I can’t give a link without creating two consistent database tables
as the data refers to real people (currently only behind an htaccess
password).

I have restarted Safari, but not the Mac.

David

On Feb 18, 2014, at 3:36 PM, David Ledger wrote:

I probably can’t see the wood for the trees. The code below (taken
from ‘View Source’ in Safari) doesn’t show the ‘Yes’ radio button
as ‘On’ although it says it is checked. Neither radio button is
‘On’.


<tr >
<td>
Active
</td>
<td  style="padding:4px">
<label for="gm_person-active-261-Yes" >Yes</label>
<input id="gm_person-active-261-Yes" type="radio" name="active" 
value="Yes" checked="checked" 
onchange=addToUpdt('gm_person-active-261-Yes') />
<label for="gm_person-active-261-No" >No</label>
<input id="gm_person-active-261-No" type="radio" name="active" 
value="No"  onchange=addToUpdt('gm_person-active-261-No') />

</td>
</tr>

Any ideas?


David Ledger - Freelance Unix Sysadmin in the UK.
email@hidden
www.ivdcs.co.uk


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


David Ledger - Freelance Unix Sysadmin in the UK.
email@hidden
www.ivdcs.co.uk


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options