为什么这行不通?
$("#selection").change(function () {
description = $("#selection").val();
console.log(description);
<cfquery datasource="#Application.cartdsn#" name="descriptions">
SELECT d.description FROM descriptionmap d, invoice i
WHERE
i.description=
<cfqueryparam value="#description#" cfsqltype="cf_sql_integer" maxlength="20">
</cfquery>
})
我已经在 jquery 之外对其进行了测试,它工作正常。不能在 jquery 中嵌入 cfquery 吗?如果不可能,我将如何执行此操作?