How to make a placeholder for a 'select' box
By Tan Lee Published on Mar 02, 2024 417
This post shows you How to make a placeholder for a 'select' box.
For example:
<select> <option value="1">C#</option> <option value="2">C++</option> </select>
If you want to add a placeholder to select for example: '--- Select ---'
You can modify your html as shown below.
<select> <option value="" disabled selected>--- Select ---</option> <option value="1">C#</option> <option value="2">C++</option> </select>
Categories
Popular Posts
Material Lite Admin Template
Nov 14, 2024
11 Things You Didn't Know About Cloudflare
Dec 19, 2024
Toolbox Admin Responsive Tailwind CSS Admin Template
Nov 20, 2024
Carpatin Admin Dashboard Template
Nov 15, 2024