JQuery .post() return html into table
问题 I have a form with two input boxes. Song and Artist. When the search button is pressed, it uses the JQuery function of .post() to post the data to a PHP page and return results back to the page. Here is my JavaScript code: <script> $(function() { $("#submitSearch").bind("click", function() { var songTitle = $("#song").val(); var artistName = $("#artist").val(); $.post("getSearchResults.php", { artist: artistName, song: songTitle }, function( data, status ) { $("#searchResults tbody").last()