in the next examples :
<b id="TITLE">The%20Vampire%20Diaries</b>
<b id="TITLE"> How%20I%20met%20your%20moom</b>
how can i replace all %20 with " "(space) in all the names that a contained in id="TITle" ?
in the next examples :
<b id="TITLE">The%20Vampire%20Diaries</b>
<b id="TITLE"> How%20I%20met%20your%20moom</b>
how can i replace all %20 with " "(space) in all the names that a contained in id="TITle" ?
Use unescape():
$("#TITLE").text(function(i,v){
return unescape(v);
});
Live Demo: http://jsfiddle.net/rm8GU/1
FYI: In case both elements in your example exist in the same document, ID should be unique, and you should use class references instead.