<!DOCTYPE HTML>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="Tovarj4" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="functions.js"></script>
<title>Show or Hidw Controls</title>
</head>
<body>
<div>
<label for="name">Name: </label>
<input type="text" id="name" />
</div>
<div>
<label for="age">Age: </label>
<input type="text" id="age" />
</div>
<div>
<label for="city">City: </label>
<input type="text" id="city" />
</div>
<div>
<label for="country">Country: </label>
<input type="text" id="country" />
</div>
<div>
<button id="show">Show Controls</button>
<button id="hide">Hide Controls</button>
</div>
</body>
<script>
$(document).ready(function(){
$("#show").click(function(){
functions.showControls("name,age,city,country",true);
});
$("#hide").click(function(){
functions.showControls("name,age,city,country",false);
});
});
</script>
</html>
|