Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • datalist tag in HTML

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 261
    Comment on it

    This tag of html provides predefined options to users so that it becomes convenient  for them to select data.

    This tag is introduced in html5.

    It is mandatory to include input element with 'list' attribute.

    here is an example:
     

    <!DOCTYPE>
    <html>  
    <body>  
    <label>  
     Enter your favorite cricket player: Press any character<br />  
     <input type="text" id="favCktPlayer" list="CktPlayers">  
     <datalist id="CktPlayers">  
     <option value="Sachin Tendulkar">  
     <option value="Shekhar Kherola">  
     <option value="Jacques Kallis">   
     <option value="Ricky Ponting">   
     <option value="Rahul Dravid">   
     <option value="Shane Warne">   
     <option value="sachin joshi">
     </datalist>  
    </label>  
    </body> 
    
    </html>

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: