deliteblogger
Established Member
I've just learned about these new HTML5 input stuff and found it interesting.
Quick and easy ways to get javascript-like effects if you don't mind about IE, as it doesn't support these yet.
Required fields
Placeholder
You can even style it with CSS3.
Autocomplete-like input
More info and demos here, or just google it.
Quick and easy ways to get javascript-like effects if you don't mind about IE, as it doesn't support these yet.
Required fields
Code:
<input name="movie" type="text" [B]required[/B] />
Placeholder
Code:
<input type="text" name="username" [B]placeholder="This is a placeholder"[/B] />
You can even style it with CSS3.
Autocomplete-like input
Code:
<datalist id="country">
<option value="Afghanistan">
<option value="Albania">
<option value="Algeria">
<option value="Andorra">
<option value="Angola">
</datalist>
More info and demos here, or just google it.
Last edited: