How can I convert jQuery ajax to fetch?
This was my jQuery code before. Now I want to change it to fetch. function fetch(){ jQuery.ajax({ url: '<?php echo admin_url('admin-ajax.php'); ?>', type: 'post', data: { action: 'data_fetch', keyword: jQuery('#keyword').val(), pcat: jQuery('#cat').val() }, success: function(data) { jQuery('#datafetch').html( data ); }…