You must Sign In to post a response.
  • Category: .NET

    Binding json data to html table input filed as hortizontal line

    HI,

    I have to bind the json data to html table input fileds.
    But input field should be like horizontal line, i,e.

    example :

    EmpID ____________ EmpName_____________
    DOB _______________ Designation____________

    I am using a html page and binding json result to html page fields using jquery ajax success event.

    Please provide me code or link.

    Regards,
    Ayesha
  • #769821
    Hi Ayesha,
    i dont know whether i get you correctly or not but you can use the CSS to change the look and feel of input box.
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom-color: black;

    Coming to your next question, you can add the "ID" property to your controls and then get/set the values from jQuery ajax call.
    $.ajax({
    url: "test.html",
    context: document.body
    }).done(function(result) {
    $('#EmpId').val( result.EmpId );
    });


  • Sign In to post your comments