requirements: click on the drop-down box and choose more, and then select the value of the post to the processing page
//basic structure as follows//there needs to be in a similar input, after click, multiple-choice, name="content_array
"
//testarray. PHP page can
$content_array=$_POST [] "content_array";
CodePudding user response:
I now use the EasyUI, practice, found just post multiple values,
& lt; ! DOCTYPE html>
Test 01 & lt;/title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/CSS" href="https://bbs.csdn.net/topics/EasyUI/easyui.css"/& gt;
<style type="text/css">
</style>$(function () {
$(' # ddlLine). Combotree ({
ValueField: "id",//the Value field
TextField: "text",//text field
Multiple: true,
Data: [{" id ": 1," text ":" All ", "children" : [{" id ": 13," text ", "C1"}, {" id ": 14," text ", "C2"}, {" id ": 15," text ":" C3 "}]}]
,
//url: "tree_data2. Json,//data source
The onCheck: function (node, checked) {
//let the future generations don't show
$(" # ddlLine "). Combotree (" setText ", $(" # ddlLine "). The combobox (" getText "). The toString (). The replace (" future generations, ", ""));
},
OnClick: function (node, checked) {
//let the future generations don't show
$(" # ddlLine "). Combotree (" setText ", $(" # ddlLine "). The combobox (" getText "). The toString (). The replace (" future generations, ", ""));
}
});
})
</script>
<body>Pops: & lt; Select id="ddlLine" name="content_array" style="width: 205 px; Height: 24 px;">