Is there a way to place an INPUT field inside select?
We can achive it putting the input tag "next to" and not "inside" the select tag but forcing them into a limited and fixed area like a table td.
function selection(){
var selected=document.getElementById("select1").value;
if(selected==0){
document.getElementById("input1").removeAttribute("hidden");
}else{
//elsewhere actions
}
}
td{
width: 170px;
max-width: 170px;
overflow: hidden;
white-space: nowrap;
}
input{
width: 164px;
}
jsfiddle