need help with changing html links to buttons
Dear Appery,
i have this code html:
code
<div class="portfolioFilter">
Code: Select all
<a href="#" data-filter="*" class="current">All Categories</a>
<a href="#" data-filter=".people">People</a>
<a href="#" data-filter=".places">Places</a>
<a href="#" data-filter=".food">Food</a>
<a href="#" data-filter=".objects">Objects</a> </div>
/code
for ex. how do i add the data-filter=".people" to a button and get the same result when clicking the button instead of the link?
many many thanks in advance!
Best,
R.