jquery - MVC Controller returning JSON to populate Select list but value needs to have a colon -
we have mvc controller returns json want. populate select list options values have colon in them. json: {result: {["valueone": "option 1: option", "valuetwo" : "option 2: other option"]} we populating list jquery $.ajax $("#eventnamedropdownlist").change(function () { geteventdatesandtimes(); }) function geteventdatesandtimes() { var eventname = $('#eventnamedropdownlist').val();// on eventnamedropdownlist value coming "option 1:" instead of whole value. var url = '@url.action("geteventdatetimebyname", "product")'; $("#eventidanddatedropdownlist").find('option').remove().end(); // clear before appending new list $.ajax({ url: url, type: "get", cache: false, datatype: "j...