I have a script.js that uses jQuery's ajax function to query string to a php file, it works as expected BUT i find it odd that i must use the "metho" sintax instead of the "method", look at this,
this works
script.js
$.ajax({
url: 'php/printers.php',
metho: 'POST',
data: {
data: c,
orderby: d,
},
success: function(output) {
$('.results').html(output);
var tbody = document.getElementsByClassName('results');
var rows = tbody[0].getElementsByTagName('tr');
ajax.applyClass(rows);
}
});
this doesn't
$.ajax({
url: 'php/printers.php',
method: 'POST',
data: {
data: c,
orderby: d,
},
success: function(output) {
$('.results').html(output);
var tbody = document.getElementsByClassName('results');
var rows = tbody[0].getElementsByTagName('tr');
ajax.applyClass(rows);
}
});
i'm preplexed that i must use the "metho" instead "method" :O i don't even know how that happened, though it was a typo??