Question: (part 1) I am looking for the most efficient way to set my form input values based on the results of my cfquery. My form fields all match
cfquery
Please try the following jQuery code snippet.
var selDefualtVal = '#getFormData.product_category#'; jQuery(document).ready(function () { jQuery("#product_category option[value='"+selDefualtVal+"']").attr("selected","selected"); });