arthurnegas — 2014-01-06T09:13:35-05:00 — #1
I'm building a site with PHP and bootstrap and trying to find a way to filter results without breaking the tabbed content.
At the moment, I have three tabs with unique ids like #tab1 #tab2 etc.
On one of the tabs, I'd like to offer the option of filtering results so would like to have a list of options to reload the tabbed content but with additional get variables so that the links would be href=#tab1?filter_id=1 but not surprisingly that is breaking the jquery.
If anyone has any ideas for how I should approach this, it would be much appreciated.
Many thanks in advance.
fretburner — 2014-01-06T15:07:07-05:00 — #2
Query string values have to go before the fragment (the #tab1 part) otherwise they won't be sent to the server by the browser. Your href value should be
arthurnegas — 2014-01-06T17:42:27-05:00 — #3
You're a star. Was contemplating starting a very unwelcome plan B tomorrow. Have tested and that works a treat.