0 Replies Latest reply on Sep 2, 2011 6:30 AM by Dale Ellis

    rich:jQuery not working as expected

    Dale Ellis Newbie

      Hi all,


      I'm sure it's probably that I do not understand the tag properly, but I am trying to add a class to table cells


      Now this doesn't work...


           <rich:jQuery selector="#searchFieldContainer td" query="addClass('topAlignedCell')" />


      This does work...


           <script type="text/javascript">

                      $("#searchForm\\:searchFieldContainer td").addClass('topAlignedCell');



      What is wrong with my syntax for rich:jQuery?


      The generated code from teh tag seems to be...


           <script type="text/javascript">

                RichFaces.jQuery.query({"selector":"#searchForm\\:searchFieldContainer td","query":"addClass('topAlignedCell')"} );