I am calling one javascript function on, onclick event. the result I get is the text box. I have list of options and for each option I want to have seperate textbox. but currently I am getting the resultant textboxes in one horizontal line. how can I align them? for each option.?
Following is the code.
Javascript:
function showSelected(val, selectedResult2,selectedResult3,selectedResult4,selectedResult5,selectedResult6,selectedResult7,selectedResult8,selectedResult9,selectedResult10,selectedResult11,selectedResult12,selectedResult13){
document.getElementById(selectedResult2).innerHTML = " " + val;
document.getElementById('selectedResult','selectedResult2','selectedResult3','selectedResult4','selectedResult5','selectedResult6','selectedResult7','selectedResult8','selectedResult9','selectedResult10','selectedResult11','selectedResult12','selectedResult13').innerHTML += " <input type='text' value='' size='5' style='height:10px; margin-bottom:5px;'/>";
HTML:
<div id='selectedResult' style="height: 20p