codigo jquery
$(document).ready(function(){ $('#submit').click(function(){ // var From = $('#STN_CODE').find(":selected").val(); if(unique.length !=0) { $.ajax({ url:"/2pointentry", method:"POST", data:{new_data:unique}, success:function(data) { $('#change').html(data); $('#change').append(data.htmlresponse); } }); } else { alert("Please provide the defficiences noted"); } }); });código pitón
def add_point2(): if request.method == "POST": print(request.form("new_data")) return render_template("newpoints2.html",form =form,name = name,details=record)
por favor, dígame cómo puedo pasar la matriz nombrada como única en javascript al matraz usando ajax