jQuery add string to url in portfolio filter -


i building filterable portfolio using unordered list jquery. filter works, open project assigned list item new page in same window , use 'go back' button go filtered page. problem filter resets on 'go back'. url doesn't change when click on filter category. there way solve this? researching adding query string url jquery somehow. no means jquery expert , haven't been able figure out. hope can me! open other solutions :)

this filter navigation using

<div id="filternav">     <ul id="filter">       <li class="current"><a href="#">all works</a></li>       <li><a href="#">logos</a></li>       <li><a href="#">illustrations</a></li>      </ul><!-- end filter --> </div><!-- end filternav --> 

and add string url once clicked on href. i've been looking @ using this:

var url = $(this).find('a').attr('href') + "logos"; var url = $(this).find('a').attr('href') + "illustrations"; 

but how target specific href?

here link tutorial on filter using.

http://code.tutsplus.com/tutorials/creating-a-filterable-portfolio-with-jquery--net-2907


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -