This is probably simple, I want to replace the _ (underscore) with nothing (space) and return the text. Take a look at my attempt.. http://jsfiddle.net/NcG78/
here is the code from the fiddle:
function formatNice(text) {
$(function() {
var new = text.replace('_', ' ');
return new;
});
}
Remove the non-needed jQuery!
There is no need for it….
Just do: