Currently I have a bunch of HTML stored in a variable that I am outputting to the page that looks a little like this:
<p class="firstpara">some stuff</p>
<p class="subhead">a heading</p>
<p class="subsubhead">a subheading</p>
<p>wording and such</p>
<p class="subsubhead">another subheading</p>
you get the idea.
and is output like:
<cfoutput>
#request.oEntry.getHTMLStuff()#
</cfoutput>
Anyway, I need to find all classes of “subsubhead” and add in a id=”x” where x corresponds to a database id i have for that subheading.
I think this would be best done in Coldfusion since the database id is already held in a cfquery and i Can’t mix and match jQuery and ColdFusion.
not currently sure the best way to do this.
This is the code I have come up with.
This works for me, but there might be a better way