Skip to main content

Posts

Showing posts from October, 2019

jQuery GET ajax request

Ajax method in jquery is used to make HTTP requests with the server. GET request $ ( document ) . ready ( function ( ) { $ . ajax ( { url : "https://fakerestapi.com/api/v1/todo_lists/" , type : "GET" , dataType : "json" , success : function ( response ) { $ . each ( response , function ( index , data ) { $ ( "#result" ) . append ( data . title ) } ) } } ) } ) ;