By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,948 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,948 IT Pros & Developers. It's quick & easy.

Advice on coding

P: n/a
I have a line of code (below) which is wrinting the word YES back to
the database. Could anyone tell me what the />Yes is for?
<input type="radio" id="optDelegated" name="optDelegated" value="YES"
/>Yes
Am I right in thinking that JScript is case sensative? only some of
the database is Yes and the radio button that this code services isn't
picking this up.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jules wrote:

[snip]
Could anyone tell me what the />Yes is for?

<input type="radio" id="optDelegated" name="optDelegated" value="YES"
/>Yes
XHTML has very strict rules. For elements which don't have closing
tags, such as INPUT and IMG, the opening tag must end "/>". The "Yes"
that follows it just text. It's a label for the INPUT element, though
strictly it should be marked up with

<label for="optDelegated"><input type="radio" id="optDelegated"
name="optDelegated" value="YES" /> Yes</label>

Note that if the document is marked-up with HTML not XHTML, the
opening INPUT tag should end normally. That is, with just ">".
Am I right in thinking that JScript is case sensative?


Yes, though I don't see anything to do with JScript (or any scripting
language, for that matter) in this post. It would have been more
appropriate to have posted your question to a HTML group.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.