Skip to content
Advertisement

how to run to foreach loops for single select tag laravel?

I want to show previously selected options as selected, I have two data sets.

  1. blocks that are JSON encoded in a column with country codes.
  2. countries list from the country table

I want to compare both and want to show countries selected that are present in users blocked colmn JSON encoded

JavaScript

Advertisement

Answer

Thanks to @gert-b

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement