1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Test a la YO-staiile
</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1"/>
<style>
input {
border: none;
}
input.editable {
border: 1px solid red;
}
</style>
</head>
<body>
<form action="#" method="post" >
<fieldset>
<input type="text" value="john" onfocus="this.className='editable'" onblur="this.className=''" />
<input type="text" value="smith" onfocus="this.className='editable'" onblur="this.className=''" />
<input type="submit" value="enregistrer" />
</fieldset>
</form>
</body>
</html> |