Convert jquery to javascript code


i see this code in doc netlify

$("#my-form").submit(function(e) {

  var $form = $(this);
  $.post($form.attr("action"), $form.serialize()).then(function() {
alert("Thank you!");

i just want to convert this jquery code to javascript code

Hi @faisalAalmalki, welcome to the Netlify community. You can find a pretty elaborate tutorial here:

1 Like

hey @faisalAalmalki, do give the website that tom posted a look. If you have questions specifically about deploying your site to netlify, we are happy to assist, but unfortunately most of the time we don’t have the availability to answer general programming questions, there are tons of great forums and websites for that, such as freecodecamp and many others. Good luck!