/    Sign up×
Community /Pin to ProfileBookmark

radio buttons "checked" does not validate

The checked state of the radio buttons in the following script does not validate..?
the selection does change however.
any advice? (both -checked=”ckecked”- and -checked by it self- do not work.)

<form method=post name=’ChangeCurrencyForm’>
{literal}
<script language=’JavaScript’>
function _changeCurrency()
{document.ChangeCurrencyForm.submit();}
</script>
{/literal}
<table>
<td><input name=”current_currency” onclick=”JavaScript:_
changeCurrency()” value=”1″ checked=”ckecked” type=”radio”></td>
<td><input name=”current_currency” onclick=”JavaScript:_changeCurrency()” value=”2″ type=”radio”></td>
<td><input name=”current_currency” onclick=”JavaScript:_
changeCurrency()” value=”3″ type=”radio”></td>
</table>
</form>

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJan 23.2007 — 1) Get rid of the pseudo-url scheme "javascript:" in your onclick handlers.

2) In HTML booloean attributes don't take values.&lt;input name="current_currency" onclick="changeCurrency()" value="1" checked type="radio"&gt;
×

Success!

Help @tuba spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...