Note: Script Must be written in header <script>jQuery(function() { var input_file = []; jQuery(‘form.wpcf7-form’).on(‘submit’, function() { console.log(“——————————-“); var i = 0; jQuery(‘input[type=file]’).each(function() { if (jQuery(this).val() […]
Detect Safari Browser Using jQuery
<script>if (navigator.userAgent.indexOf(‘Safari’) != -1 && navigator.userAgent.indexOf(‘Chrome’) == -1) { alert(‘Now, You are using safari browser…’); }else{ alert(‘Now, You are not using safari browser…’);}</script>
How to Disable Date on Month Change in Datepicker Using jQuery?
I have created disable dates on change month in jQuery UI Datepicker. The Datepicker shows the disable date in Datepicker. While click on Next or […]
How to temporarily disable a button click in jQuery?
<script>$(“#button_id”).click(function() { if($(this).data(‘dont’)==1) return; $(this).data(‘dont’,1); // Do Process ….. $(this).data(‘dont’,0);} ///////// OR ///////// $(“#button_id”).click(function() { if($(“#button_id”).data(‘dont’)==1) return; $(“#button_id”).data(‘dont’,1); // Do Process ….. […]