how can i send the post id on this URL inside my id variable, i needed for an ajax function This is the URL
https://barrera.pe/prueba/productos/barrera-3/?id=204
$(document).on('click','.more-link',function(e){
e.preventDefault();
link = $(this);
id = link.attr('href').replace(/^.*?id=/,'');
$.ajax({...
...