In the attribute for
of the element <label>
, is there a way to make reference to a generated jsf id?
The jquery will now work there, it will generate:
<label for='$(this).closest(".my-input-text").attr("id")'>MyLabel</label>
<span class="generated-spam-element">
<span class="generated-spam-element">
<input id="jsf:long:generated:id:MyInput" class="my-input-text" />
</span>
</span>
(I'm also using primefaces, if there's any solution using it)