[Music] Lil Show Ft. Otega & Hardgun- No Picker

‘); // 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(‘


‘); //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(”); //$(‘trix-editor[input=comment] > div’).text(“”); } }); return false; }); });

Leave a Reply

Your email address will not be published. Required fields are marked *