From 1684b6aad3918228fdcdee2886c29b74d5ef2881 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 23 Aug 2018 10:30:16 +0530 Subject: added character counter --- static/website/js/custom.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'static/website/js/custom.js') diff --git a/static/website/js/custom.js b/static/website/js/custom.js index 2573428..4720549 100644 --- a/static/website/js/custom.js +++ b/static/website/js/custom.js @@ -65,6 +65,18 @@ $(document) updateGallery($(this)); }); } + + var fewSeconds = 5; + $('#subbtn').click(function(){ + // Ajax request + alert("I have read all the instructions carefully"); + var btn = $(this); + /*btn.prop('disabled', true); + setTimeout(function(){ + btn.prop('disabled', false); + }, fewSeconds*1000);*/ +}); + }); // build key actions @@ -91,3 +103,4 @@ $(document) e.preventDefault(); // prevent the default action (scroll / move caret) }); + -- cgit