I need to access and update fields, such as quantity from a product field, from the Javascript function gform_product_total. I've tried doing it with something like:
var qtyProduct = $("input[name=input_5.3]").val();
However, this throws an error "$ is not a function".
What is the right way of referencing form element values from within that function?