?
Solved

Valid way to set default input radio field

Posted on 2009-02-19
1
Medium Priority
?
538 Views
Last Modified: 2013-11-19
What is the valid XHTML way to make a radio option default?
<input type="radio" name="linkupload" value="1" checked  /> 
<input type="radio" name="linkupload" value="2"  />

Open in new window

0
Comment
Question by:hankknight
1 Comment
 
LVL 16

Accepted Solution

by:
alain34 earned 2000 total points
ID: 23680338
Hello hankknight,

<input type="radio" name="linkupload" value="1" checked="checked"  />
<input type="radio" name="linkupload" value="2"  />

validated by http://validator.w3.org/check

Regards,

alain34
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question