Why Won't this work?
$("#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>
})
I've tested it outside of the jquery and it works fine. Is it not possible to embed a cfquery in jquery? If it is impossible, how would I go about performing this?