Hi, i using checkbox in dhtmlXCombo, and i select all checkbox, but when submit form and show with php var_dump($_POST); only show
array(3) { [“alfa3”]=> string(0) “” [“alfa3_new_value”]=> string(4) “true” [“Submit”]=> string(6) “Enviar” }
What is the problem?
Thanks…!
Hello,
Only combo value is submitted.
If you want to send values of the checked options, you can use the following approach:
set onsubmit event handler that will place to some hidden input checked value.
The example:
<form onsubmit=“get_checked()” …>…
…
function get_checked(){
document.getElementById(“check”).value = combo.getChecked();
}
Hi, how do it to selected some checkboxes, where put the code “checked”…
Hello,
If you want to preselect some options, you can do in in the xml:
…
Moreover combo API can be used:
combo.setChecked(option_index,1);