I have an image link which I want to use as a toggle button.
<img id="myToggleButton" src="myToggle.jpg" />
And what I want it to toggle is this:
<ul id="listview" data-filter="true">
So, basically I need to change from data-filter="true" or data-filter="false" and so on.
How can I get this working using JQuery?
1 Answer