An html input box isn't being displayed, Firebug says it has style="display: none" but I haven't don

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-05-11T04:04:36Z Indexed on 2010/05/11 4:14 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

I have placed a form on a page which looks like this:

<form id="editClassList" name="editClassList" method="get" action="EditClassList">
    <label>
        <input name="class-to-add" id="class-to-add" size="42" type="text">
    </label>
    <label>
        <input name="save-class-btn" id="save-class-btn" value="Save Class(es)" type="submit">
    </label>
</form>

But when it get's rendered by a browser it comes out like this:

<form id="editClassList" name="editClassList" method="get" action="EditClassList">
    <label>
        <input style="display: none;" name="class-to-add" id="class-to-add" size="42" type="text">
    </label>
    <label>
        <input name="save-class-btn" id="save-class-btn" value="Save Class(es)" type="submit">
    </label>
</form>

For some reason style="display: none;" is being added, and I cann't understand why. This results in the text box not displaying.

© Stack Overflow or respective owner

Related posts about html

Related posts about css