Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I had an earlier question last month on dropdown issue and "F-ES SiteScore" username helped me achieve that.

<button >Click me</button>




<script>
function myFunction() {
// append the whole html for a select
document.getElementById("demo").innerHTML += "<select><option value='1'>One</option></select>";

// or create one programatically and add it to the DOM

var select = document.createElement("select");

var option = document.createElement("option");
option.value = "1";
option.text = "One";
select.appendChild(option);

document.getElementById("demob").appendChild(select);

return false;
}
</script>


But, I need help including the following... in-place of appendchild option..

open bracket cfselect
name="NameList" size="1" query="UserRole_q" value="EmpID" display="Name" selected="#temp#">
<option value="-1"></option>
close cfselect bracket
Posted
Comments
ZurdoDev 9-Jul-15 15:34pm    
I'm confused. What do you need?
Member 11709123 13-Jul-15 16:44pm    
so instead of the dropdown, i want the cfquery to be put in place.

if you look at the first part, its a javascript to show a button, when clicked it will show a dropdown, upon selecting a dropdown, 2nd dropdown shows up.

so, my initial question for this post, is that, how do i include coldfusion query which pulls the values for multiple in place of 2nd dropdown from the javascript.

hope i explained well.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900