Created
April 9, 2019 11:37
-
-
Save sreevardhanreddi/c1442c2ce08e5689659a5fc6b4b0d98f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// the anchor tag is the pagination link | |
$("a[rel='page']").click(function(e){ | |
e.preventDefault(); | |
$('#search_filter').attr("action", $(this).attr("href")); | |
$('#search_filter').submit(); | |
}); | |
// post to a view function, instead of get | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment