Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Ajax code


    $.ajax({    
        type: "POST",
        url: "../controller/jobs/php/post_job.php",   
        data:{
          type: 300,
        },
        success: function(data){ 
            $('#job_category').html(data);
        }
    });
Comment

ajax code

 $.ajax({
    type: 'GET',
    dataType: 'json',
    url: url,
    timeout: 5000,
    success: function(data, textStatus ){
       alert('request successful');
    },
    fail: function(xhr, textStatus, errorThrown){
       alert('request failed');
    }
  });
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to remove spaces from strings javascript 
Javascript :: localstorage clear item 
Javascript :: async false in ajax 
Javascript :: nodejs binary string to decimal number 
Javascript :: inline style react 
Javascript :: generate combinations of values from multiple array javascript 
Javascript :: add params to url vue 
Javascript :: page redirect after load 
Javascript :: 12 hours to 24 hours javascript 
Javascript :: apply eventlistener to iframe 
Javascript :: jquery telephone input mask 
Javascript :: javascript for...of loop to iterate over the multidimensional array 
Javascript :: javascript function loop through array 
Javascript :: ajax with progress bar 
Javascript :: javascript string in string 
Javascript :: bootstrap disable button after click 
Javascript :: pyspark from_json example 
Javascript :: nuxt progress false 
Javascript :: react native get uri of the image in the app assets folder 
Javascript :: js addeventlistener arrow keys 
Javascript :: for of loop javascript 
Javascript :: fetch method in js 
Javascript :: link react router dom 
Javascript :: nuxt emit 
Javascript :: manifest.json basic structure 
Javascript :: js get last element of array 
Javascript :: countdown in react js 
Javascript :: jquery check if input is empty 
Javascript :: http to https express js 
Javascript :: bootstrap datepicker set min and max date 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =