0

I have a json located in http://example.com/json
The result of json is like this :

{"result":[{"id":"1","lob_group_desc":"ENTERPRISE"},{"id":"2","lob_group_desc":"SME"}]}


How to loop them in <select>
What I expected was like this :

<select class="form-control" id="component">
   <option>ENTERPRISE</option>
   <option>SME</option>
 </select>
4
  • stackoverflow.com/questions/9895082/… Commented Sep 16, 2017 at 20:17
  • @SatishKumar what i want is using Vue.js :\ Commented Sep 16, 2017 at 20:18
  • Yes I know , I shared the link for reference. You can get an idea from that link. Commented Sep 16, 2017 at 20:20
  • What you can do is parse the Json data and form an array of lob_group_desc . Then you can loop through it in html and add it as option to your select. Commented Sep 16, 2017 at 20:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.