i want to fetch data on select2 drop down using ajax but i am not getting how to fetch data for update view
i want to fetch data on select2 drop down using ajax but i am not getting how to fetch data for update view
plz help me someone. I dont have any idea how to fetch data on select2 drop down also for multiple.I have tried this in my script
$('#edit_question1').val(response.qry1.data[i].parameter);
$('#edit_question2').val(response.qry1.data[i].parameter);
$('#edit_question3').val(response.qry1.data[i].parameter);
$('#edit_question4').val(response.qry1.data[i].parameter);
$('#edit_question5').val(response.qry1.data[i].parameter);
$('#edit_question6').val(response.qry1.data[i].parameter);
$('#edit_question7').val(response.qry1.data[i].parameter);
$('#edit_question8').val(response.qry1.data[i].parameter);
$('#edit_question9').val(response.qry1.data[i].parameter);
$('#edit_question10').val(response.qry1.data[i].parameter);
$('#edit_question11').val(response.qry1.data[i].parameter);
$('#edit_question12').val(response.qry1.data[i].parameter);
1 Answer
1
Please add your ajax function here and also check in console the response of your ajax call.
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.