The below code which display the username from the user table, When i click the username , then that particular user firstname will be display ,
Now i want to edit that particular person firstname , How to do that with jquery , <html> <title>Jofire Contacts</title> <head> <style type="text/css"> li{ list-style:none; color:#0033FF; cursor:pointer; } </style> <script src="jquery.js" type="text/javascript"></script> <script type="text/javascript" src="demo.js"></script> <script type="text/javascript"> function showDetails(id) { $.ajax({ type: "POST", url: "showdetails.php", data: "id=" + id , success: function(html){ $('#test').html(html); } }); } </script> </head> <body> <?php mysql_connect("localhost","root","admin"); mysql_select_db("test"); ?> <?php $query = "SELECT first_name,id FROM mantis_contacts_ameex"; $result = mysql_query($query); ?> <ul> <? while($row = mysql_fetch_object($result)){ $contact_id = $row->id; print "<li onClick=showDetails($contact_id) >".$row->first_name."</li>"; } //onClick=showDetails($contact_id) ?> </ul> <div id="test"></div> </body> </html> -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariyerphp.site88.net/bharanikumar/