What is an alternative of Richfaces rich:jQuery element for Primefaces 5?
I know about widgets, but widgetVar attribute is applicable only for Primefaces elements, but not for simple JSF. For example, how can I write this element in Primefaces? <rich:jQuery name="enableCancel" selector="#cancel" query="removeAttr('disabled');" />
Element 'cancel' is a JSF outputLink.
What is the best way to do such things?