CSS 08
CSS 08
On
Submitted by
Bothe Yadnya Uday [27]
Submitted by:-
Bothe Yadnya Uday [27]
Guided by HOD
Dr.G.N.Jorvekar Dr.G.N.Jorvekar
CONTENTS.
1 INTRODUCTION
2 OBJECTIVE
3 CODE
OUTPUT
4
CONCLUSION
5
REFERENCE
6
INTRODUCTION:
Typical form control objects -- also called "widgets" -- include the following:
The value property of the inputbox, is both readable and writable. That is, you can read
whatever is typed into the box, and you can write data back into it. The process of setting the
value in a form object is just the reverse of reading it.
var fname=document.getElementById("fname").value;
The visibility property allows the author to show or hide an element. It is similar to
the display property. However, the difference is that if you set display:none, it hides the entire
element, while visibility:hidden means that the contents of the element will be invisible, but
the element stays in its original position and size.
#ln{visibility: hidden;}
document.getElementById("ln").style.visibility="visible";
OBJECTIVE:
The objective behind the project was to take user input and then display in the format of
table.
Accepting the next input only if the first input field is filled.
CODE:
<html>
<style>
#ln{
visibility: hidden;
}
#div1{
visibility: hidden;
}
#div2{
visibility: hidden;
#submit{
}
#reset{
}
body{
}
table{
}
</style>
<body>
function print()
{
var f=document.getElementById('female'); var m=document.getElementById('male');
if(f.checked==true||m.checked==true){
document.getElementById("submit").style.visibility="visible";
document.getElementById("reset").style.visibility="visible";
}
}
function sub()
{
var n=1;
var x=0;
var selectedRow=null;
</script>
</html>
OUTPUT:
CONCLUSION:
We successfully took input data from user and displayed it in the table format.
REFERENCES:
https://www.javascript.com › – javascript