I have a variable called position where I want to delete part of the text. The exact text I want to remove is contained in the title variable.
var title = $(currentLi).find('img').attr('alt'); var position = $(currentLi).find('span').text();
To just clarify, I create a variable called position containing the text, I want to delete all the text that matches the text inside the title variable.
Thanks for the help of anyones.
source share