Answers for "css make field read only"

CSS
0

input text only css

input[type=text] {
   /* Awesome styling */
}
Posted by: Guest on February-19-2021
0

make all fields read only in form

<form>
    <fieldset disabled="disabled">
        <input type="text" name="something" placeholder="enter some text" />
        <select>
            <option value="0" disabled="disabled" selected="selected">select somethihng</option>
            <option value="1">woot</option>
            <option value="2">is</option>
            <option value="3">this</option>
        </select>
    </fieldset>
</form>
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language