javascript function not getting called
问题 In a Django template, I have a function function show_graph(i){ $("#"+i+"seegraph").click(function(){ $("#"+i+"graph").show(); var qaa = {{ question_ids }}; var qid = qaa[i-1]; jQuery.ajax({ url: "/canvas/recreatechart/", type: "get", data: {qid: qid }, success: function(response){ var resp = jQuery.parseJSON(response); alert("chart1"+i); show_graph("chart1"+i, resp['chart_type'], resp['series_names'], JSON.stringify(resp['data1']), resp['answer'], resp['stories1'], resp['colors'], resp[