Anyone Help me?
My ajax response is
[{"name":"hotel1","id":6,"created_at":"","updated_at":"","check_in_time":"","check_out_time":""},
{"name":"dfgds","id":7,"created_at":"","updated_at":"","check_in_time":"","check_out_time":""}]
I want to set the name with corresponding id to Select2 without reloading the current page.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Anyone Help me? My ajax response is [{"name":"hotel1","id":6,"created_at":"","updated_at":"","check_in_time":"","check_out_time":""}, {"name":"dfgds","id":7,"created_at":"","updated_at":"","check_in_time":"","check_out_time":""}] I want to set the name with corresponding id to Select2 without reloading the current page.