- Posts: 115
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).ready(function(){ $('#movesubmitbtn').click(function(){ SendEmail(); }); });
function SendEmail() { var email = 'myemail@gmail.com'; $.ajax({ url:'https://www.domainname.com/surveyassets/sendmail.php?email_tocheck=' + email, complete: function (response) { $('#output').html(response.responseText); }, error: function () { $('#output').html('Bummer: there was an error!'); } }); return false; }