Skip to main content
In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

access Access Model object in jqueryjQuery

I have a Model, Customers, in which iI have a list property, PayHistory. I need to bind the table with the PayHistory object using jqueryjQuery in my ASP.NET MVC (C#) application.

I am binding the table using jqueryjQuery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); </script> 

In the above htmlHTML, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the htmlHTML given above?

access Model object in jquery

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); </script> 

In the above html, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the html given above?

Access Model object in jQuery

I have a Model, Customers, in which I have a list property, PayHistory. I need to bind the table with the PayHistory object using jQuery in my ASP.NET MVC (C#) application.

I am binding the table using jQuery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); </script> 

In the above HTML, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the HTML given above?

deleted 3 characters in body
Source Link
EndangeredMassa
  • 17.5k
  • 8
  • 57
  • 81

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr>  </table>  <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } }   }); </script> 
  

In the above html, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the html given above?

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr>  </table>  <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } }   }); 
 

In the above html, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the html given above?

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); </script> 
 

In the above html, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the html given above?

added 1 characters in body
Source Link
EndangeredMassa
  • 17.5k
  • 8
  • 57
  • 81

iI have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my aspASP.net mvcNET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); 

In the above html, iI am trying to access the list object PayHistory in jqueryjQuery, but it gives the type of the object.

How can iI access the object in jqueryjQuery to bind the table as in the html given above?

i have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my asp.net mvc(C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); 

In the above html, i am trying to access the list object PayHistory in jquery, but it gives the type of the object.

How can i access the object in jquery to bind the table as in the html given above?

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application.

I am binding the table using jquery as:

<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> </div> </td> <td> <div id="PaidAmt"> </div> </td> </tr> </table> <script type="text/javascript" language="javascript"> $(document).ready(function() { //Initialize the dynamic Value; _dynId = 1; var data= '<%= Model.PayHistory %>'; if (data != null) { for (i in data) { var pay= data[i]; $('#PaidDate').append('<div id="PaidDate' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.paidDate+ '</label>'); $('#PaidAmt').append('<div id="PaidAmt' + _dynId + '" style="height:20px;padding-left:10px;">' + '<label>' + pay.PaidAmount + '</label>'); _dynId += 1; } } }); 

In the above html, I am trying to access the list object PayHistory in jQuery, but it gives the type of the object.

How can I access the object in jQuery to bind the table as in the html given above?

Source Link
Prasad
  • 59.6k
  • 65
  • 154
  • 202
Loading