Coldfusion Populate form with dropdown selection using ajax

后端 未结 3 1160
感动是毒
感动是毒 2021-01-25 19:52

So I have a project that\'s using ColdFusion and it has a form with a dropdown.

See example: http://jsfiddle.net/mwoods98/KXmNK/

What I need to

3条回答
  •  野性不改
    2021-01-25 20:06

    The easiest way to do it is with the bind attribute of cfselect. However, whether you use this method or roll your own jquery, do this:

    1. Make sure your query works when it's not in a cfc.
    2. Make sure your query works when it's in a cfc and you are calling it with cfinvoke or from an object.

    That way, if you have any issues calling it from ajax, you'll know it's not the cfc that's at fault.

提交回复
热议问题