Created
December 13, 2016 22:20
-
-
Save s2ar/007efa69d5b7cb46f5b2077bdf70ed29 to your computer and use it in GitHub Desktop.
setInterval.js
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
var btn = $('#set_filter_price'); | |
var myVar = setInterval(function(){ | |
checkBtnFilter(); | |
}, 50); | |
function checkBtnFilter() { | |
if(!btn.prop('disabled')){ | |
btn.click(); | |
//console.log(btn) | |
stopcheckBtnFilter(); | |
} | |
} | |
function stopcheckBtnFilter() { | |
clearInterval(myVar); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment