As above I am using a function to search a MySql database and display the results in a designated table but the return information is being displayed in HTML code instead (as below)
<style type="text/css">
.style39 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style92 {font-size: 12px}
</style>
<table width="100%" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr class="PartListHeader">
My JavaScript:
$('input#PartNumber_Submit').on('click', function() {
var PartNumber = $('input#PartNumber').val();
if ($.trim(PartNumber) != ''){
$.post('small-displays/PartSearchResults.php', {PartNumber: PartNumber}, function(data) {
$('div#name-data').text(data);
});
}
});
I've been tinkering with the data . text but I'm well and truely lost and my mind has even lost with what to do. 1 hour and 50 minutes starring at the same small script! ARGH!
Something simple no doubt!
Any help would be much appreciated!
Thanks in advance,