Welcome Guest, Not a member yet? Register   Sign In
form_dropdown -> optgroup validation issue
#4

[eluser]Evil Wizard[/eluser]
The html validation error is because the <optgroup> tag is expecting to contain child elements, that is why it is unfinished, either contain the list within the optgroup or omit it.
Code:
<div class="formrow">
    <label for="program">Program: </label>
    <select name="program">
        <option value="113">aaaaaa</option>
        <option value="114">bbbbbb</option>
        <option value="116" selected="selected">ccccc</option>
        <option value="115">ccccc</option>
    </select>
</div>
or
Code:
<div class="formrow">
    <label for="program">Program: </label>
    <select name="program">
        <optgroup label="0">
            <option value="113">aaaaaa</option>
            <option value="114">bbbbbb</option>
            <option value="116" selected="selected">ccccc</option>
            <option value="115">ccccc</option>
        </optgroup>
    </select>
</div>


Messages In This Thread
form_dropdown -> optgroup validation issue - by El Forum - 06-07-2009, 12:05 PM
form_dropdown -> optgroup validation issue - by El Forum - 06-07-2009, 01:37 PM
form_dropdown -> optgroup validation issue - by El Forum - 06-07-2009, 02:08 PM
form_dropdown -> optgroup validation issue - by El Forum - 06-08-2009, 04:19 AM
form_dropdown -> optgroup validation issue - by El Forum - 06-10-2009, 08:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB