Hi All,
Below code gives me exact result which I want..
output gets displayed at div # result which is as per design. Now i wouldlike to know is there any method to display result in textbox? if so please help me.

<html>
<head>
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
              <script type="text/javascript">
                 {   $(document).ready(function(){
                    $("#num").change(function(){



                    var settlementnum=$('#num').val();
                    //alert(settlementnum);
                    $.post("jqueryclaim.php",{phpcn:settlementnum},function(data){


                    $("#result").fadeIn().html(data);
                         });

                         });
                         });


               }

               </script>
               </head>
              // to display result
              <body>
              <div id="result"></div>
              <input type="text" name="id" value=""/>
              <body>
              </html>

Recommended Answers

All 4 Replies

$("#textbox").val(data);

<input type="text" id="textbox" name="textbox" value="" />

cool, it is working fine. thank you so much

Heading Here

hey guys i think it will be help for you it also submitted MR.shrikanthnk bt i also think that it is prefer for us.

Sub-Heading Here

if iwas wrong then help me

<html>
<head>
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
<script type="text/javascript">
{ $(document).ready(function(){
$("#num").change(function(){
var settlementnum=$('#num').val();
//alert(settlementnum);
$.post("jqueryclaim.php",{phpcn:settlementnum},function(data){
$("#result").fadeIn().html(data);
});
});
});
}
</script>
</head>
// to display result
<body>
<div id="result"></div>
<input type="text" name="id" value=""/>
<body>
</html>
Member Avatar for diafol

Sorry hari, can't understand you...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.