I’m currently loading a number of list items through a customised Content Query Web Part.
And XSLT attribute associated with each of these items is the Created Date.
An example of the mark up below.
<div class=”item” createddate=”2014-01-22 13:02:52” language=”French”>Content</div>
<div class=”item” createddate=”2014-01-28 13:02:52” language=”German”>Content</div>
<div class=”item” createddate=”2013-12-18 13:02:52” language=”Italian”>Content</div>
What I need to do is create a radio button filter where the values are:
- Last 30 days
- Last 90 days
When either of these radio buttons are selected, it will hide and show the items based on their date value.
How could the filter be created (through jquery/javascript) that would hide and show these items based on their created date?
Any help would be greatly appreciated.