2 Replies Latest reply on Feb 28, 2011 9:24 AM by ram ram

    richfaces + jquery

    ram ram Newbie

      Hi All,

       

           I have the following example where if jquery:

                $(this).data('initial_value', $(this).is(':checked'));

       

           How can this be applied in richfaces, I am using the following code and I have problems where the this.data is returning null:

       

                <rich:jQuery  selector="input, textarea, select"

                                                          query="each(function {

                                                                            if(this.type == 'radio' || this.type == 'checkbox')

                                                                                      this.data('initial_value', this.is('checked'));

                                                                  })">

                          </rich:jQuery>

       

      Regards,

      Ram