Replace Function in JSTL

<c:out value="${fn:replace(string,find,replaceWith)}"/>

JQuery(#delete_role).click(function(){

jquery doesnt allow space or special characters in the id of the element.


Replace All :

//ie to replace all dots on page with hyphens
var replace_str = $('body').html().replace(/./g,'-');
$('body').html(replace_str);
//if that doesn't work try this
var strNewString = $('body').html().replace(/\./g,'---');
$('body').html(strNewString);