Music Nigeria Stories

[Music] Tekno – On You

‘); // Defining the Status message element var statusdiv=$(‘#comment-status’); commentform.submit(function(){ // Serialize and store form data var formdata=commentform.serialize(); //Add a status message statusdiv.html(‘

Processing…

‘); //Extract action URL from commentform var formurl=commentform.attr(‘action’); //Post Form with data $.ajax({ type: ‘post’, url: formurl, data: formdata, error: function(XMLHttpRequest, textStatus, errorThrown){ statusdiv.html(‘

ERROR!! Your comment is too short or you have left some fields blank. Please try to say something useful and meaningful. God bless you as you do 🙏

‘); setTimeout(function(){ statusdiv.html(”); }, 4000); }, success: function(data, textStatus){ if(data==”success”) statusdiv.html(‘

Thanks for your comment. We appreciate your response.

‘); else statusdiv.html(‘

Thanks for your comment. It is awaiting moderation and will be posted soon.

‘); setTimeout(function(){ statusdiv.html(”); }, 4000); commentform.find(‘textarea[name=comment]’).val(”); } }); return false; }); });

Tags