I want to remove the span using jQuery, I have tried the .unwrap(); but it\'s not working.
.unwrap();
<
$('li').find('span').remove();
or
$('li').find('span').detach();
If you want to remove the wrapping only, try
var buffer = $('li').find('span').text(); $('li').find('span').parent().html(buffer);