Last active
March 10, 2022 04:58
-
-
Save reachkamrul/c788b99240f04a2283b260c04f75bdb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//filter by current month | |
var myTimeout = setTimeout(myFilterFunction, 100); | |
var months = ("0" + (new Date().getMonth() + 1)).slice(-2)+"/"; | |
months = "/"+months; | |
function myFilterFunction() { | |
// jQuery('select').sumo.selectItem(months.toString()); | |
jQuery('option[value="'+months+'"]').prop("selected", true); | |
jQuery('.form-control').trigger("change"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment