<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> </title>
<Style type = "text/css">
. DivFrame {width: 260px; border: 1px solid #666; font-size: 10px}
. DivTitle {background-color: # eee; padding: 5px}
. DivContent {padding: 5px; display: none}
. DivTip {width: 244px; border: 2px solid red; padding: 8px; font-size: 9px; margin-top: 5px; display: none}
. TxtCss {border: 1px solid # ccc}
. DivCurrColor {background-color: Red}
. DivBtn {padding-top: 5px}
. DivBtn. btnCss {border: solid 1px #535353; width: 60px}
</Style>
<Script src = "jquery-1.9.1.js" type = "text/javascript"> </script>
<Script type = "text/javascript">
$ (Function (){
$ ('. Divtitle'). click (function (){
$ ('. Divtitle'). addClass ('divcurrcolor ')
.Next('.divcontent'mirror.css ('display', 'block ')
$ ('# Button1'). click (function (){
Var txtvalue = $ ('# Text1'). val ();
Var radiovalue = $ ('# Radio1'). is (': checked ')? "Male": "female ";
Var checkvalue = $ ('# Checkbox1'). is (': checked ')? "Married": "Unmarried ";
Certificate ('nvidivtip'0000.css('display', 'block'0000.html (txtvalue + "<br/>" + radiovalue + "<br/>" + checkvalue );
})
})
})
</Script>
</Head>
<Body>
<Div class = "divFrame">
<Div class = "divTitle"> enter your information </div>
<Div class = "divContent">
Name: <input id = "Text1" type = "text" class = "txtCss"/> <br/>
Gender: <input id = "Radio1" name = "rdoSex" type = "radio" value = "male"/> male
<Input id = "Radio2" name = "rdoSex" type = "radio" value = "female"/> female <br/>
Marital status: <input id = "Checkbox1" type = "checkbox"/>
<Div class = "divBtn">
<Input id = "Button1" type = "button" value = "Submit" class = "btnCss" "/>
</Div>
</Div>
</Div>
<Div id = "divTip" class = "divTip"> </div>
</Body>
</Html>
The program runs as follows:
Click the title, enter details, and click OK.