-
-
Save 99manish/3cb1b44b69f83bcab91a48fe3f7b4fe4 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> | |
jQuery(document).ready(function($) { | |
var newestsel = ''; | |
var activesel = ''; | |
var alphabeticalsel = ''; | |
var selected = $("#members-order-by option:selected").val(); | |
if(selected == 'active') { | |
activesel= 'selected'; | |
} | |
else if(selecetd = 'newest') { | |
newestsel = 'selected'; | |
} else { | |
alphabeticalsel = 'selected'; | |
} | |
$('#members-order-by').html('<option value="alphabetical" '+ alphabeticalsel+ '>Alphabetical</option><option value="active" '+ activesel+ '>Last Active</option><option value="newest" '+ newestsel+ '>Newest Registered</option>'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment