function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}
// Then call this function using the 'onfocus' value of your input box:
<input value="Your Comment" onfocus="clearDefault(this)" type="text">
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1862"></script>
Controler l'ordre des tabulations dans un formulaire HTML (attribut tabindex)
<title>Controlling TAB Order
</title>
</head>
Field 1 (first tab selection):
<input type="text" name="field1" tabindex=1 /><br />
Field 2 (third tab selection):
<input type="text" name="field2" tabindex=3 /><br />
Field 3 (second tab selection):
<input type="text" name="field3" tabindex=2 /><br />
</form>
</body>
</html>
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1553"></script>
/* Pour avoir un style différent selon le type d'input que avez, utilisez la syntaxe suivante : */
input[type~=text] {
/* vos réglages */
}
/* text etant le type de l'input ( texte password button submit etc ) */
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/497"></script>