Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

select placeholder

// A non-CSS - no JavaScript/jQuery answer: 
// add option and disable it, it will act like placeholder.  
<select>
    <option value="" disabled selected>Select your option</option>
    <option value="optionA">optionA</option>
</select>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #placeholder
ADD COMMENT
Topic
Name
6+1 =