Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

disabling first item in dropdownlist

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select name="clientName" id="clientName"> 
    <option name="" value="">Client Name</option>
    <option name="Jennifer Black" value="0">Jennifer Black</option>
    <option name="Henry Johnson" value="1">Henry Johnson</option>
    <option name="Jack Hunnington" value="2">Jack Hunnington</option>
    <option name="Mary Green" value="3">Mary Green</option>
</select>
 $('option[value=""]').attr("disabled", "disabled");
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript condition based on table cell value 
Javascript :: javascirpt escape tab 
Javascript :: write a program to print patter usign recursion in javascript 
Javascript :: typeorm caching queries limit 
Javascript :: how to change default browser in vs code json 
Javascript :: how to use sort with tiebreak in js 
Javascript :: vercel route all pages to a file 
Javascript :: extra reducer 
Javascript :: create an array filled with 1 
Javascript :: stdi nodejs 
Javascript :: api dfetch data in reactjs 
Javascript :: JavaScript URL Parse including pathname 
Javascript :: Block Alignment Toolbar Using ESNext in Wordpress 
Javascript :: on click disable esc button using jquery 
Javascript :: javascript for dummies 
Javascript :: check string length pixel "react" 
Javascript :: javascript copy input value to clipboard 
Javascript :: angular mat-calendar send to form 
Javascript :: function last character return 
Javascript :: multiple all elements in array 
Javascript :: js tabbed data to array 
Javascript :: automatically function run js function on load after some time 
Javascript :: amcharts 3d column chart export 
Javascript :: javascript replace char if not present another character 
Javascript :: discord.js anonymous channel 
Javascript :: firefox button not enabling 
Javascript :: rails + vue js projcet demo 
Javascript :: apps script convert a1notation to row column 
Javascript :: save file as get dimensions puppeteer js 
Javascript :: how to verify json format is valid 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =