how to check a button visible or false code example
Example: jquery is element hidden
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");