predifined data for form input by users


I am not sending form anywhere so i am not
writing form action here i learned is how to make predifined
datalist for website or blog

<form>
my sex<input type="text" name="sex" list="sex">
<datalist id="sex">
<option value="male">
<option value="female">
</datalist>
<input type="submit" name="submit">
</form>


demo
<--

my sex

-->

as soon as i double click in the blank box i will get two option
that i written up male / female this is what i learned this will help people
to save there time by our predefined text..
To make this working i just write   list="sex"
in first input tag and after that i wrote <datalist id="sex"> the id "sex"
 i make same to understand the command for <datalist> tag
after thar i kept <option value="male">
<option value="female">
and then other form metirials are mentioned as shown above..

I am learning...

Share this post :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. NayaBlog - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger