how to show an element, do something else and then hide that element in one click event?
问题 I'm using contact form 7. I have a form submit button, when i click it gif loader image shows up and then validation status message shows up along with gif image disappear. in css i'm using .ajax-loader{display:none;} in js i'm using $('.wpcf7-submit').click(function(){ $('.ajax-loader').show(); if('block' == $('div.wpcf7-display-none').css('display')){ $('.ajax-loader').hide(); } }); But this code is not working as alerting $('div.wpcf7-display-none').css('display') is still showing " none "