I just need general ajax contact form with secure code to avoid spam for my portfolio site. any recommend? Thanks
you can use bootstrap with captcha validation! https://jonbake.com/blog/bootstrap-3-contact-form-with-captcha/
Really if you need to take a dump all over the accessibility of the site with AJAX for something as simple as a contact form, there's something wrong with how you are handling forms. A simple one use timeout hash and multiple single IP address block SERVER SIDE, dual key transmitted via the session ID and a input[hidden] should be all you need; anything you do dicking around with client-side scripting can easily be slapped aside, which when combined with the accessibility failings inherent in such approaches makes any client-side only approach like AJAX a complete waste of time. Again, remember the unwritten rule of JavaScript -- if you can't make the page work without JavaScript FIRST, you probably have no business adding JavaScript to it! Could we see what (if anything) you have for an existing form and form handler? If you want to piss all over your site with code bloat given what idiotic asshat bull bootstrap is...