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

    rich:jQuery not working as expected

    daleellis1983

      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');

           </script>

       

      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')"} );

           </script>

       

      TIA,

      Dale