locked
Client Side Filtering Using Jquery RRS feed

  • Question

  • Hi. I would like to filter a DVWP using client side filtering.  Here is what I have done so far:  I wrapped the entire DVWP inside a div tag.

    <div id='filters'>
    

     This code will hide the DVWP:

    var $fil = $('#filters'); $fil.hide(); 
    

    Using a jquery filter function, I tried to effect certain items that met the criteria.  This does not work: 

     $(fil).filter(function(index) { return $('@ID', this).val == 2; }).css('background-color', 'red');
    

    Is there another element I can reference to see if the ID is equal to 2. Once I find a match, I'll want to hide that item. Thanks.

    Richard

    Friday, September 24, 2010 3:44 PM

Answers

All replies