HTML gevorderde |
|
EDIT: oplossing gevonden:
function createLinks(){
string = document.getElementById('analyse').innerHTML;
search = /<span title="(\w+)*-(\w+)*">[a-zA-Z]*<\/span>/gi;
replace = '<a href="#" onclick="analyse(\'$1-$2\');">Blabla</a>';
nieuw = string.replace(search, replace);
document.getElementById('analyse').innerHTML = nieuw;
}
function createLinks(){ string = document.getElementById('analyse').innerHTML; search = /<span title="(\w+)*-(\w+)*">[a-zA-Z]*<\/span>/gi; replace = '<a href="#" onclick="analyse(\'$1-$2\');">Blabla</a>'; nieuw = string.replace(search, replace); document.getElementById('analyse').innerHTML = nieuw; }
|