as always, your help is very much valued <3
I have listings on my site that feature metadata keywords in the description. I'd like to make these appear like tags (our cms doesn't support tags hence this hack). It prints just the words separated with commas, like so:
<div class="tags">abp, accredited building practitioners, calendar of events, upcoming events</div>
Is javascript capable of finding any word in these divs and replacing them with a href that links to oursite.com/search?query=THEWORD ? If so, does anyone have a script they can share?
Here is a working function built with a little jQuery, although easily can be converted to basic JavaScript:
jQuery:
HTML:
**Check this out. If the alert msg that you see is what you are looking for than you just need to append it in the div. http://jsfiddle.net/UH5U9/3/
EDIT