How to Convert a Check Box to a Drop-Down in HTML

104 10
    • 1). Open your HTML page in your preferred Web coding editor. If you do not have one, use Notepad.

    • 2). Locate the check-box HTML. If, for example, the check box allowed you to choose your gender it would look like this:

      <input type="checkbox" name="gender" value="male" />Male<br />

      <input type="checkbox" name="gender" value="female" />Female<br />

    • 3). Replace that code with the following code:

      <select name="gender">

      <option value="male">Male</option>

      <option value="female">Female</option>

      </select>

Source...

Leave A Reply

Your email address will not be published.