Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function () {
- $("#SelectCountry").load( function() {
- $.ajax({
- url: "../Member/Home.aspx/GetCountryName",
- type: "POST",
- dataType: 'json',
- contentType: 'application/json; charset=utf-8',
- data: "{'name': '" + "1" + "'}",
- async: false,
- success: function (response) {
- if (response.d != null) {
- $.each(response.d, function (i, response) {
- debugger;
- $("#SelectCountry").append("<option value=" + response.CountryId + ">" + response.CountryName + "</option>");
- });
- }
- },
- error: function (xhr) {
- }
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement