AJAX Data with Dynamic form fields name – Jquery ajax
Hello how can can make my ajax data call to be dynamic, I tried this var opt_name = $(".NAME").data('opt_name'); var opt_business = $(".BUSINESS").data('opt_business'); var opt_phone = $(".PHONE").data('opt_phone'); var opt_email = $(".EMAIL").data('opt_email'); var opt_unique_name=$(".UNIQUE_NAME").data('opt_unique_name'); var opt_name_val = $(".NAME")[key].value; var opt_business_val =…