I'm trying someting very basic and it doesn't work : (Im getting the alert 'Test' and that's it :( )
<script name="text/javascript">
function myFunction(part_id, product_id, type)
{
alert('test');
$.ajax({
type: 'post',
url: '2.php',
data: {lname: "www", name: "Natalie"},
complete: function (txt) {
alert("complete");
alert(txt);
}
});
}
</script>
on 2.php I have only one line (on the same directory):
echo "test has been run";