<button type="submit" onclick="UserAction()">Search</button>
unction UserAction() {
$.ajax({
type: 'GET',
url: 'http://127.0.0.1:8000/api/project/?industry_sector=Automobiles&location=State',
success: function(res){
console.log(res)
$.ajaxSetup({
headers: {
"token": res.token
}
});
},
error: function(error) {
callbackErr(error,self)
}
})
}
unction UserAction() {
$.ajax({
type: 'GET',
url: 'http://127.0.0.1:8000/api/project/?industry_sector=Automobiles&location=State',
success: function(res){
console.log(res)
$.ajaxSetup({
headers: {
"token": res.token
}
});
},
error: function(error) {
callbackErr(error,self)
}
})
}
No comments:
Post a Comment