Setting options of dropdowns from javascript
hi all,
i new coldfusion.
i have created page called demo.cfm.it has grid table edit button on each row of grid.
when user wants edit values of grid row click on edit opens page demo1.cfm.
in demo1.cfm want set values of cliked row in corresponding fields.
i have 2 dropdowns. options of dropdowns passing demo.cfm page.in demo1.cfm page in dropdown fields want set these options.
the dropdowns in demo1.cfm dynamic dropdowns. second dropdown value based on first dropdown value.
how can set options getting demo1.cfm first option in dropdown.
please me resolve issue.
i new coldfusion.
i have created page called demo.cfm.it has grid table edit button on each row of grid.
when user wants edit values of grid row click on edit opens page demo1.cfm.
in demo1.cfm want set values of cliked row in corresponding fields.
i have 2 dropdowns. options of dropdowns passing demo.cfm page.in demo1.cfm page in dropdown fields want set these options.
the dropdowns in demo1.cfm dynamic dropdowns. second dropdown value based on first dropdown value.
how can set options getting demo1.cfm first option in dropdown.
please me resolve issue.
there 2 ways.
<cfselect selected="#variable_goes_here#">
or
<select>
<option value="something"
<cfif something>selected="selected" </cfif>
>
<cfselect selected="#variable_goes_here#">
or
<select>
<option value="something"
<cfif something>selected="selected" </cfif>
>
More discussions in ColdFusion
adobe
Comments
Post a Comment