I tried to get the text-box's id via its event function but it seems $a doesn't work because the system understands this as text, what should I do?
<select class="btn btn-outline-secondary dropdown-toggle"
type="button"
class="dropdown-menu"
onchange="validateSelectBox(this,'skill_input4')">
<select class="btn btn-outline-secondary dropdown-toggle"
type="button"
class="dropdown-menu"
onchange="validateSelectBox1(this,'skill_input3')">
function validateSelectBox(obj, $a){
var options = obj.children;
var html = '';
for (var i = 0; i < options.length; i++){
if (options[i].selected){
html += options[i].value;
}
}
// this is the error, the textbox does not change data
// when I select the combobox
document.getElementById('$a').value = html;
}
classin each select - Also where is thetextbox?document.getElementById($a).value$athat NOT right. ItsJavascriptnotPHP=> use simple$a