html - How to display an array from JSON as a select option using jQuery -


I'm learning this business and want to know how to properly display JSON data.

I have the following JSON data: <">" data filter ": {" EventTap ": [" Mobile Internet "]," Destination ": [" United Kingdom "]," UsType ": [" All use "," Voice minutes "," Three to three minutes "]," Voice minutes "," Voice minutes "," Voice minutes "," Voice minute "destination: [" Premium rate number "," Mobile ", "", "MsgFilters": {"eventType": ["All Use", "Family Wage", "Not included in my Allowance" "}", "3 Mobile", "Voicemail", "Eyewor"], "Ususup" "Utility message"], "destination" : ["India", "Mobile"], "Utility Type": ["All Uses", "My Allowance Passed", "Not Involved in My Allowance"]}}

If someone can help and perhaps provides a solution or example ID, then she is very grateful.

Thanks

You have something to start with:

  var optns = $ .map (json.dataFilters.usageType, function (value, key) {return" & Lt; option value = "+ key +" & gt; "+ value +" & lt; / option & gt; ";}); ("# SelectId") $ (optns) attached;  


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -