I am trying to display the results of this get request but it is not returning any results or errors.
Even when testing I have tried to hardcode and append <li>my job</li>
but that doesn't work either.
Have you got any ideas?
Here is my code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(function (){
var $jobs = $('#jobs');
$.ajax({
type: 'GET',
dataType: 'json',
username: '5afe0f90-3480-4d47-8206-3529815a610a',
password: '',
crossDomain: true,
url: 'http://www.reed.co.uk/api/1.0/search?keywords=construction&location=sheffield',
success: function(jobs) {
$.each(jobs, function(i, job){
$jobs.append('<li>my job</li>')
});
}
});
});
</script>
<ul id="jobs"></ul>