JSF renders just HTML to the browser, so you are free to use jQuery as using with a pure HTML page.
But you have to understand how the id names are rendered to the client, if you put "[b]my-id[/b]" to a JSF component, the appropriate client HTML component may have the id as "[b]my-id[/b]' or "[b]form1:my-id[/b]" or "[b]j_idt6:form1:my-id[/b]". Therefore if you select this component in jQuery you may use the "Attribute Ends With Selector" in jQuery as: [b]$("div[id$='my-id']")[/b]
[Message sent by forum member 'miss_duke']
http://forums.java.net/jive/thread.jspa?messageID=480210