# Convert jquery to javascript code

**URL:** <https://answers.netlify.com/t/convert-jquery-to-javascript-code/17345>\
**Category:** Support\
**Tags:** netlify-forms, deployment\
**Created:** [June 20, 2020, 10:46am UTC](https://answers.netlify.com/t/convert-jquery-to-javascript-code/17345 "2020-06-20T10:46:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faisalAalmalki](https://avatars.discourse-cdn.com/v4/letter/f/f1d935/32.png) [@faisalAalmalki](https://answers.netlify.com/u/faisalAalmalki)\
**Post date:** [June 20, 2020, 10:46am UTC](https://answers.netlify.com/t/convert-jquery-to-javascript-code/17345/1 "2020-06-20T10:46:43Z")

</div>

Hello,

i see this code in doc netlify

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

  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

---

<div class="post-metadata">

**Author:** ![tomrutgers](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/tomrutgers/32/107_2.png) [@tomrutgers](https://answers.netlify.com/u/tomrutgers)\
**Post date:** [June 20, 2020, 11:29am UTC](https://answers.netlify.com/t/convert-jquery-to-javascript-code/17345/2 "2020-06-20T11:29:53Z")

</div>

Hi @faisalAalmalki, welcome to the Netlify community. You can find a pretty elaborate tutorial here: [How to Make AJAX Form Submissions on Netlify Using Vanilla JavaScript - YouTube](https://youtu.be/ykrupgQgmkA)

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [June 22, 2020, 5:47pm UTC](https://answers.netlify.com/t/convert-jquery-to-javascript-code/17345/3 "2020-06-22T17:47:38Z")

</div>

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!
