Function init (){
// Common invoice payer type code 1 stands for the unit 0 stands for the individual
If ($ ("# fkfLxDm"). val () = '1 '){
$ ('Input [type = radio] [value = 1] ') [0]. checked = true;
} Else if ($ ("# fkfLxDm"). val () = '0 '){
$ ('Input [type = radio] [value = 0] ') [0]. checked = true;
}
// Whether the unified invoice for the construction industry is the total contractor
If ($ ("# zbr"). val ()){
$ ("# Zbr") [0]. value = true;
$ ('Input [type = checkbox] [value = true] ') [0]. checked = true;
} Else {
$ ("# Zbr") [0]. value = false;
$ ('Input [type = checkbox] [value = false] ') [0]. checked = false;
}
// Whether the unified invoice for the construction industry is the package owner
If ($ ("# fbr"). val ()){
$ ("# Fbr") [0]. value = true;
Alert ($ ("# fbr"). val ());
$ ('Input [type = checkbox] [value = true] ') [1]. checked = true;
} Else {
$ ("# Fbr") [0]. value = false;
$ ('Input [type = checkbox] [value = false] ') [1]. checked = false;
}
<Td width = "15%" align = "left"> whether it is a package </td>
& Lt; td width = "35%" align = "left" & gt;
<Input type = "checkbox" NAME = "fbr" id = "fbr">
</Td>