How to fetch data and display content in jquery ajax

Description

How to fetch data and display content in jquery ajax with id class javascript

In javascript ajax fatch the content and show for mysql with php

We are show the code if you are submit the form so insert the content and display the content

with pass the extra variable. Find the element by ID in an AJAX javascript Response with jQuery 

in Mysql.Fetch data from a mysql php database with JQuery AJAX from a mysql database.jQuery javascript 

with php Get Content and Attributes 

<script>  

 $(document).ready(function(){  

      $('#seahbitton').click(function(){ 

   var phonenoset = $("#countryname").val(); 

                      $.ajax({

                        type:"post",

                        url:"actioncomment.php",

      data:"phonenocomment="+phonenoset+"&action=showcomment",

                      // data:"action=showcomment", //

                     // data:"phonenocomment="+phonenoset+"",

                        success:function(data){

                             $("#dismsgcomment").html(data);

                        }

                      });

 

      });  

 });  

 </script> 

<div id='dismsgcomment'></div>