Background Receive value
string[] Ctrltypes = request.getparametervalues ("Ctrltypes");
String str1 = new string ();
if (Ctrltypes.length > 0) {
for (int i = 0; i < ctrltypes.length; i++) {
STR1 + = Ctrltypes[i] + ",";
}
Tabusers.setctrltypes (str1.substring (0, Str1.length ()-1));
}
Foreground Echo
Management Category:
var ctrtype=$ (' # ' +id+ ' _4 '). Text ();
var c=ctrtype.split (",");
for (Var i=0;i<2;i++)
{
var flag=$ (' #mctrltypes ' +i). Val ();
for (Var j=0;j<c.length;j++)
{
if (C[j]==flag)
{
$ (' #mctrltypes ' +i). attr ("Checked", true);
$ (' #mctrltypes_ ' +i). Show ();
}
}
}
check box to select the judgment
if ($ ("Ctrltypes0"). Is (": Checked")) {
$ (' #ctrl0 '). each (function () {
if ($ (this). Is (": Checked")) {
is selected
$ ("#ctrl0info"). HTML ("");
}else{
Is not selected
Flag=false;
$ ("#ctrl0info"). HTML ("please select");
}
});
}
The value of the checkbox is stored in the database and echoed