jQuery force display


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. jQuery.fn.forceShow = function() {
  2. if (this.css('opacity') < 0.25) {
  3. this.css('opacity',1)
  4. }
  5. return this.show().css('visibility','visible')
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.