det nemmeste vil nok være at bruge js til det
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
</style>
<script type="text/javascript">
function EnabeleNext(elm, nextid){
document.getElementById(nextid).type=(elm.value != "")? "text" : "hidden";
}
</script>
</head>
<body>
<form action="#">
First name: <input type="text" name="fname" onblur="EnabeleNext(this, 'lname')"><br>
Last name: <input type="hidden" name="lname" id="lname" onblur="EnabeleNext(this, 'age')"><br>
alder: <input type="hidden" name="age" id="age"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Indlæg senest redigeret d. 02.08.2013 18:11 af Bruger #16075