4 Replies Latest reply on Nov 29, 2007 3:33 PM by bruno.arruda

    rich:jQuery basic usage question

      Hi ppl,

      First congratulations to this new component, it opens a lot of possibilties within an organized way.

      I´ve been playing with the <rich:jQuery tag and after trying a lot of variations I couldn´t "migrate" the following code to the tag:

      $(document).ready(function(){
       $("input").focusFields();
      });
      


      I´ve tried some variations including:

      <rich:jQuery selector="input" timing="onload" query="function(){focusFields()}" />
      
      <rich:jQuery selector="input" timing="onload" query="focusFields()" />
      
      <rich:jQuery selector="input" timing="onload" query="focusFields" />
      


      and some other.... but none worked... what would be the correct syntax?

      thanks very much, best regards!