I need two selectors:
- one for ordinary text in a
h2element - and one for text within a
strongtag
The first is working with:
selector: 'h2.flashHeader'
But
selector: 'h2.flashHeader strong'
doesn’t work for string text.. any ideas?
Markup:
<h2 class="flashHeader">
<umbraco:Item field="headerText" stripParagraph="true" runat="server"></umbraco:Item>
</h2>
The Umbraco field embeds text that comes in two variants – normal and strong, like so:
<h2 class="flashHeader">
<strong>Strong text.</strong>
some other not strong text
</h2>
If your HTML looks like this:
Then your selectors should be working.