mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-15 08:37:09 +00:00
19 lines
No EOL
371 B
JavaScript
19 lines
No EOL
371 B
JavaScript
/**
|
|
* @author Philip Brembeck
|
|
* @version 0.0.1
|
|
*/
|
|
|
|
$('input[name="submit"]').on('click', function(e) {
|
|
e.preventDefault();
|
|
|
|
$.ajax({
|
|
url: 'script.php',
|
|
type: 'POST',
|
|
data: {
|
|
barcode: $('input[name="barcode"]').val()
|
|
},
|
|
success: function(result) {
|
|
$('#result').html(result);
|
|
}
|
|
});
|
|
}); |