Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      $('#Customers').change(function() {
        $.ajax({
          type: "POST",
          contentType: "application/json; charset=utf-8",
          url: "FetchCustomer.asmx/GetCustomer",
          data: "{ CustomerID: '" + $('#Customers').val() + "'}",
          dataType: "json",
          success: function(data) {
            $("#CustomerDetails").html(data.d);
          }
        });
      });
    });
</script>


@@@@@@@@@@@@

Pls help me to add three para for this code,
Posted
Comments
[no name] 9-Jan-12 12:22pm    
What is the problem you are having?

C#
data: { v1: $('#element1').val(),
          v2: $('#element2').val(),
          v3: $('#element3').val()


This is corect.
 
Share this answer
 
Hi,
Get a best example of passing parameters in ajax on code project itself;
Jquery Ajax Calling Functions[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900