Thanks!
if (! Empty ($_GPC [' linkage2 '])) {
$lg=array (" l1=& gt;" Intval ($_GPC [' linkage1 ']), "l2"=& gt; Intval ($_GPC [' linkage2 ']));
$row=[' linkage '] iserializer ($lg);
{if! Empty ($linkage)}
The function fetchgetjs (obj) {
$(' # linkage2 '). The empty ();
$(' # linkage2). Append (' & lt; The option value="" & gt; Please select & lt;/option> ');
if (! {$(obj). Val ())
return false;
}
$. GetJSON (' {PHP echo $this - & gt; CreateMobileUrl (' GetLinkage ')} '{' linkage1: $(obj). Val ()}, the function (s) {
If (s.m essage. Status==0) {
$. Toast (s.m essage JSS, "cancel");
return false;
}
//$(' # linkage2). The empty ();
If (s.m essage. JSS) {
If (s.m essage. JSS [0]. Setfillin=='1') {
$(' # link_parent). Attr (' isfill ', 1);
$(' # link_parent). Parents (' weui_cell '). RemoveClass (' weui_cell_select ');
$(' # link_parent). Parents (' weui_cell '). RemoveClass (' weui_select_after ');
$(' # link_parent '). The empty (), append (' & lt; Input name="linkage2" id="linkage2" placeholder="please fill in '+ s.m essage. JSS [0]. Title +'" required tips="please fill in '+ s.m essage. JSS [0]. Title +'" & gt; ');
} else {
$(' # link_parent). RemoveAttr (' isfill ');
Var text=$(' # link_parent). Parents (' weui_cell '), find (' weui - start '). The HTML ();
Var HTML='& lt; Select name="linkage2" id="linkage2 required tips"="please choose '+ text +'" & gt;';
For (I in s.m essage. JSS) {
HTML +='& lt; The option value="' + s.m essage. JSS [I] id + '" & gt; '+ s.m essage. JSS [I] title +' & lt;/option> ';
}
HTML +='& lt;/select> ';
$(' # link_parent). Parents (' weui_cell '). The addClass (' weui_cell_select ');
$(' # link_parent). Parents (' weui_cell '). The addClass (' weui_select_after ');
$(' # link_parent '). The empty (), append (HTML);
}
}
});
}
{/if}
Linkage2 array cannot be in the input to the database to write in Chinese, English, in line, underscore characters, such as now want to database to pure Numbers, which a great god help me ah
Thank you very much!