<script type="text/javascript"> function drpbrandChange(id) { ShowModels(document.getElementById(id).value); } function ShowModels(CarSefUrl) { var param = { _CarSefUrl: CarSefUrl }; var data2; var _url = "JSON/GetCarModelThroughCarSefUrl_New"; var _data = param; var result = null; $.ajax({ url: _url, cache: false, async: false, data: _data, success: function (data) { result = data; }, dataFilter: function (data) { if (typeof (JSON) != 'undefined' && typeof (JSON.parse) == 'function') if (typeof (JSON.parse(data)) == "object") data2= JSON.parse(data); else data2 = data; else data2 = eval('(' + data + ')'); }, error: function () { result = false; } }); if (data2 != undefined) { var items = "<option value=\"\">Select Model...</option>"; var obj = "#drpModel"; if (data2 != null) { $.each(data2, function (i, data2) { items += "<option value=" + data2["ModelName"] + ">" + data2["ModelSefUrl"] + "</option>"; }); $(obj).html(items); } } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)