I want to call a javascript function when flow enters into <c:if> block.
For example, I have below code:
<c:if test="${!empty errorMessage && !(fn:contains(errorMessage, 'generic'))}">
<span> errorError occured<br />
</span>
</c:if>
I need to invoke a JS function only when this <c:if> is true.
Please suggest how to achieve this.