Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="http://code.jquery.com/jquery-latest.js"></script>
- <script type = "text/javascript">
- $(document).ready(function() {
- $('#sort_list').bind('change', function () {
- var url = $(this).val();
- if (url != '') {
- window.location = url;
- $('#sort_list').find("option[value='"+url+"']").attr("selected", "selected");
- }
- return false;
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement