Click here to Skip to main content
15,897,187 members

Comments by Member 11709123 (Top 6 by date)

Member 11709123 13-Jul-15 16:44pm View    
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.
Member 11709123 9-Jul-15 11:41am View    
So the current dropdown is

option = document.createElement("option");
option.value = "2";
option.text = "Two";
select.appendChild(option);

But how do i include a coldfusion query as dropdown...option in place of above?

cfselect name="NameList" size="1" query="UserRole_q" value="EmpID" display="Name" selected="#temp#">
<option value="-1"</option>
Member 11709123 9-Jul-15 11:37am View    
Deleted
So the current dropdown is
option = document.createElement("option");
option.value = "2";
option.text = "Two";
select.appendChild(option);

But how do i include a coldfusion query as dropdown...option in place of above?

<cfselect name="NameList" size="1" query="UserRole_q" value="EmpID" display="Name" selected="#temp#" &gt;
&lt;option="" &gt;&lt;="" option&gt;
&lt;="" cfselect="">
Member 11709123 9-Jul-15 11:35am View    
Deleted
So the current dropdown is
<pre lang="text">option = document.createElement("option");
option.value = "2";
option.text = "Two";
select.appendChild(option);</pre>

But how do i include a coldfusion query as dropdown...option in place of above?
<pre lang="text">
<cfselect name="NameList" size="1" query="UserRole_q" value="EmpID" display="Name" selected="#temp#">
<option value="-1"></option>
</pre>
Member 11709123 24-Jun-15 11:58am View    
for the second dropdown, how do i add more than 1 option,

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

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

im trying to add more than 1 option for the second dropdown and im unable to do that. kindly help